Top "Kotlin-android-extensions" questions

Questions related to Kotlin Android Extensions

getActivity() / context in a ViewHolder in Kotlin Android

I'm building a ViewHolder and Adapter for a Fragment and when I try to make an OnClick for the ViewHolder, …

android kotlin android-viewholder kotlin-android-extensions
Kotlin - List within a List filtering

I have those data classes: data class RouteType( @SerializedName("type") val type: String, @SerializedName("items") val items: List<RouteItem&…

list lambda kotlin kotlin-android-extensions
how to instantiate ViewModel In AndroidX?

I want to initialize ViewModel in Activity using androidx library I have tried what documentation says but it is not …

android kotlin viewmodel android-jetpack kotlin-android-extensions
Kotlin Activity cannot be extended. This type is final, so it cannot be inherited

I have created a Kotlin Activity, but I am not able to extend the activity. I am getting this message: …

kotlin kotlin-android-extensions
How can I access a char in string in at specific number?

I tried this code but it is giving me errors. So how can I access a character in a string …

string kotlin char kotlin-android-extensions
How to setOnNavigationItemListener on BottomNavigationView in android using Kotlin?

I use kotlin-android-extension and I can call bottomNavigationView id from layout file to kotlin file. I can use bottomNavigationView.setOnNavigationItemSelectedListener(…

android android-studio kotlin kotlin-android-extensions
Kotlin Android debounce

Is there any fancy way to implement debounce logic with Kotlin Android? I'm not using Rx in project. There is …

android kotlin kotlin-android-extensions kotlin-extension kotlinx.coroutines
Kotlin synthetic and custom layout in DialogFragment

Let's say I have this layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/…

android kotlin kotlin-android-extensions
This type has a constructor and must be initialized here - Kotlin

I just get started experimenting Android app using Kotlin. I just wanted to inherit Application class like this: class SomeApp : …

android constructor kotlin kotlin-android-extensions
Unresolved reference for synthetic view when layout is in library module

using Kotlin 1.20.20 (not that it matters, older versions behaves the same) When layout is in separate library module Android Studio …

android kotlin-android-extensions