https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android
  • n

    nino

    03/03/2017, 10:07 AM
    https://android-developers.googleblog.com/2017/03/android-studio-2-3.html
    👍 4
    u
    • 2
    • 8
  • a

    aaverin

    03/03/2017, 12:47 PM
    Hey guys. What do you use for Parcelables? I have a library with some shared models, written in Kotlin. Need to make them parcelables somehow on Android
    m
    • 2
    • 2
  • j

    jw

    03/03/2017, 2:34 PM
    Stop using --parallel
    n
    • 2
    • 1
  • i

    izorin

    03/03/2017, 4:03 PM
    @neworldlt are you using annotation processing? And which version of gradle and android gradle plugin you are on?
    n
    • 2
    • 5
  • b

    bryan

    03/03/2017, 9:50 PM
    Changing min API to 24 😉
    k
    • 2
    • 6
  • a

    anthonyeef

    03/05/2017, 10:32 AM
    Anyone try
    greenDAO
    with Kotlin? Looks like it’s not friendly to Kotlin 😒adfrog:
    d
    • 2
    • 7
  • j

    jakub.dyszkiewicz

    03/05/2017, 11:00 AM
    Check out Anko Sqlite https://github.com/Kotlin/anko/blob/master/doc/SQLITE.md I know that it is not ORM, but I implemented first database table just yesterday and I’m happy with it. I love that I have full controll over mapping. I work with Hibernate daily so you know… it’s refreshing 😄
    a
    k
    c
    • 4
    • 16
  • v

    v0ldem0rt

    03/05/2017, 6:02 PM
    I am going to write an Android app using Kotlin any recommended resources I should read or any skelton projects?
    m
    b
    • 3
    • 4
  • k

    katz

    03/06/2017, 4:46 PM
    hi pals, does some one know a good orm compatible with kotlin (and gson) (requery make me piss off)
    d
    d
    • 3
    • 2
  • k

    kubak89

    03/07/2017, 3:42 PM
    @gildor All right, that worked, thanks! 👍 Just noticed that this Kotlin wrapper library doesn’t depend on mockito android library, probably because it was intended for more general usage.
    g
    • 2
    • 1
  • m

    mg6maciej

    03/09/2017, 8:02 AM
    Quick poll: How do you currently package your classes? 1️⃣ vertically, i.e. classes interacting with each other together, e.g.: https://jakubn.gitlab.io/keepitclean/#29 2️⃣ by type, i.e. all activities in one package, all presenters in another, etc., e.g.: https://jakubn.gitlab.io/keepitclean/#27 3️⃣ I'm hardcore an put everything in one package! e.g.: https://jakubn.gitlab.io/keepitclean/#28 4️⃣ Differently / I'm not sure
    4️⃣ 1
    2️⃣ 6
    1️⃣ 30
    d
    • 2
    • 3
  • e

    elect

    03/09/2017, 8:03 AM
    what about #28
    m
    c
    b
    • 4
    • 12
  • j

    justasm

    03/09/2017, 8:56 AM
    Hi all. Has anyone tried to use
    kotlin-android-extensions
    to access synthetic widget properties from another Android library module within the project? In my attempts the IDE imports and autocompletes and resolves the references properly, but the
    compileDebugKotlin
    build step fails with
    Unresolved reference
    for the synthetic properties. Does the plugin simply not support such use cases? Sample: https://gist.github.com/justasm/4a75afd5f5f3e6ba0dbc16b5a1e5331b
    l
    • 2
    • 2
  • f

    f.babic

    03/09/2017, 10:18 AM
    hey guys, can help me with RxJava + kotlin issue.. I have a list of Observables, and I want to compose them together, so that when each observable emits all it’s items(a finite amount), the composed observable emits onComplete, telling the system it’s done but I can’t seem to infer the type of the .zip() to be Array<TripModel>(in my case)
    g
    • 2
    • 2
  • e

    enighma

    03/09/2017, 11:44 PM
    Does anyone know of a good lightweight reactive library? RxJava is simply to bulky imo.
    m
    z
    m
    • 4
    • 21
  • g

    gildor

    03/10/2017, 2:23 AM
    @samthompson Works for us without problem (kotlin 1.1, kapt3)
    s
    • 2
    • 10
  • v

    vyacheslav.gerasimov

    03/10/2017, 6:46 PM
    Unfortunately documentation about kapt is outdated, i think we will write some kind of blogpost about it
    m
    • 2
    • 1
  • b

    ben

    03/11/2017, 5:10 PM
    I'm just getting started with Kotlin. Does anyone know how good the Android Studio java to kotlin code convertor is?
    m
    b
    +2
    • 5
    • 7
  • c

    cdev

    03/11/2017, 8:42 PM
    If I concat two observables (two retrofit calls) then the onNext is called just only once..and the onComplete() is never called. What am I doing wrong?
    m
    • 2
    • 1
  • k

    kenkyee

    03/13/2017, 2:05 AM
    Ormlite should work fine then... We're also using it because we want to use gson in the data models instead of having a separate data layer 😛
    👍🏼 2
    b
    • 2
    • 3
  • d

    deviant

    03/13/2017, 10:09 AM
    here is one of my top 3 orms https://github.com/gfx/Android-Orma kotlin ready
    m
    • 2
    • 1
  • r

    robin

    03/13/2017, 10:24 AM
    @grahamborland
    apply
    will make
    this
    point to the View you're inflating, so it's trying to use
    shortcuts
    as an extension of the newly inflated view instead of the Activity(?) you're in. Try using
    this@OuterComponent.shortcuts
    inside the apply to reference the same thing you're referencing outside of the apply. (Replace "OuterComponent" with the name of the class you're doing this inside of, obviously)
    g
    • 2
    • 1
  • m

    mg6maciej

    03/13/2017, 10:58 AM
    Nevertheless I don't like overuse of
    apply
    or
    also
    and I tend to avoid it unless it makes the code way more readable.
    • 1
    • 1
  • k

    kirillrakhman

    03/14/2017, 10:19 PM
    Streams for sure
    l
    f
    • 3
    • 5
  • s

    sdeleuze

    03/15/2017, 1:13 AM
    “We've decided to add support for Java 8 language features directly into the current javac and dx set of tools, and deprecate the Jack toolchain” https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html
    😮 2
    m
    • 2
    • 3
  • m

    miha-x64

    03/15/2017, 7:45 AM
    Jack looked like a strange idea to me, because all tooling like annotation processing, compiler enhancements (Lombok?), and many others will not work. Javac is great, but it is 20 years old! It would be impossible to create such mature compiler shortly. Support (and Design, Recycler etc) are very good, but their bugs are incredible sometimes. In support 23.2, IIRC, they suddenly included vector drawables which led to instant crash on Android older than Lollipop. Support-v7 version 24 or 25 suddenly became support-v9 (without explicit renaming), dropping API 7 and 8 support. In support-v13, there is FragmentStatePagerAdapter, which really can be used since API 17, where native child-fragments are supported. So, in my opinion, Google generates many questions and dead kittens.
    m
    • 2
    • 3
  • m

    matoelorriaga

    03/15/2017, 6:39 PM
    http://stackoverflow.com/questions/42817993/android-build-fails-with-kotlin-reflect-and-proguard
    d
    • 2
    • 1
  • m

    mg6maciej

    03/16/2017, 9:17 AM
    @stepango 1) I never used databinding, cause I don't like to put presentation logic in XML (e.g.
    viewModel.counter > 0 ? View.VISIBLE : View.GONE
    ), but is it not possible to do
    android:onClick="@{viewModel::incCounter}"
    ? (not library related) 2) Would be nice to see an example app also implemented without using your lib to see what problems it solves. I don't like using libs just to use libs, when for example the amount of code stays the same or almost the same, just looks different. 3) Add real tests in lib module. Remove example tests from both modules. I like to first read executable documentation.
    d
    s
    +2
    • 5
    • 9
  • e

    edenman

    03/16/2017, 11:10 PM
    (i’m just gonna file it, unless anybody has any quick suggestions)
    • 1
    • 1
  • m

    morozov

    03/18/2017, 5:53 PM
    @mzgreen yep, but i unned this feature) how i can delete it?) because only "Settings" and "Send" stays selectrd
    l
    • 2
    • 2
Powered by Linen
Title
m

morozov

03/18/2017, 5:53 PM
@mzgreen yep, but i unned this feature) how i can delete it?) because only "Settings" and "Send" stays selectrd
l

louiscad

03/18/2017, 6:04 PM
@morozov
android:checkableBehavior="none"
on the group should do the trick, but googling would have shown the answer to this non kotlin related question 😉
➕ 2
m

morozov

03/19/2017, 10:21 AM
thx) but one of item from navigationDrawer also doesn t workright)
View count: 1