Gabor Varadi
Oct 27, 2020

1.) the answer itself didn't need -ktx, but yes, you can definitely use -ktx version.

2.) this is a change that came with 1.4.0, indeed, you no longer need to import an `observe` to use trailing lambdas.

3.) Usually my layouts are called main_activity.xml and first_fragment.xml.

4.) That can work

5.) I use with(binding) {}

6.) case mapping is pain, I just use camelCase consistently now

Gabor Varadi
Gabor Varadi

Written by Gabor Varadi

Android dev. Zhuinden, or EpicPandaForce @ SO. Extension function fan #Kotlin, dislikes multiple Activities/Fragment backstack.

Responses (1)