Top "Kotlin" questions

Kotlin is an open-source, statically typed programming language supported and developed by JetBrains.

Difference between List and Array types in Kotlin

What is the difference between List and Array types? It seems can make same operations with them (loops, filter expression, …

kotlin
How to clone or copy a list in kotlin

How to copy list in Kotlin? I'm using val selectedSeries = mutableListOf<String>() selectedSeries.addAll(series) Is there a …

list copy kotlin
lateinit property has not been initialized

I have a custom linearlayout class and when I want to create instance of this class, I got an error …

android kotlin butterknife
How to convert List to Map in Kotlin?

For example I have a list of strings like: val list = listOf("a", "b", "c", "d") and I want to …

dictionary kotlin
How to implement Builder pattern in Kotlin?

Hi I am a newbie in the Kotlin world. I like what I see so far and started to think …

design-patterns kotlin
Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException

I update my Android Studio (3.2.1) and its sdk to the latest version. After that it required a manual update for …

android kotlin sdk ads
Use of Boolean? in if expression

If I have a nullable Boolean b, I can do the following comparison in Java: Boolean b = ...; if (b != null &…

kotlin null
How to pass the values from activity to another activity in kotlin

As I'm learning Kotlin for Android development, I'm now trying the basic programs like hello world and how to navigate …

kotlin kotlin-android-extensions
In Kotlin, what is the idiomatic way to deal with nullable values, referencing or converting them

If I have a nullable type Xyz?, I want to reference it or convert it to a non-nullable type Xyz. …

nullable kotlin non-nullable
How I can use callback in Kotlin?

I have View and one CircleShape , which should show toast in this View. And I use it in main Activity. …

java android xml kotlin listener