Questions tagged [android-ktx]

Android KTX is an open source set of Kotlin Extensions which aims to make Kotlin code more simple and clean when developing for the Android Platform. DO NOT use this tag in questions about the Android Kotlin Extensions plugin.

Android KTX is a library developed by Google that simplifies the way Android Apps are written with Kotlin. It is still in preview and may change anytime.

Resources

40 questions
2
votes
1 answer

backstack with navigation component

using the navigation component on two fragments, my app currently destroys a fragment when navigateUp() is called (using the setupActionBarWithNavController()), and therefore when I enter the deleted fragment, all progress is lost, I am trying to…
1
vote
1 answer

Kotlin how to launch an async processing from android.app.Application

I am new to Kotlin and trying to start an async backend call inside android.app.Application import android.app.Application; class App: Application { override fun onCreate() { super.onCreate() fetchDataFromBackend() } fun…
1
vote
1 answer

Has android KTX been deprecated completely or only some parts or extensions?

After reading the announcement that android KTX is now deprecated, I have been reading about the alternatives and find a confusing point. Have all KTX modules been deprecated or only some of them such as synthetic, serialized,…
Sergio76
  • 3,594
  • 13
  • 55
  • 84
1
vote
1 answer

IllegalArgumentException when app start post backpressed

I use "by viewModels" kotlin delegate for get some view model: val viewModelFactory: ViewModelFactory by lazy { ViewModelFactory.getInstance(this) } val mainViewModel: MainViewModel by viewModels { viewModelFactory } ViewModelFactory: class…
VladDz
  • 13
  • 2
1
vote
1 answer

how can I change this attribute colorControlNormal programmatically

I couldn't change back button colour in the toolbar But when I set this style it's working fine, but I…
1
vote
1 answer

Why is my default alert dialog button text white?

I have set up my app as follows: build.gradle implementation 'com.google.android.material:material:1.1.0' styles.xml