Useful extensions

Sometimes we can’t use kotlin synthetics library.

Maybe layout was changed during runtime, and int this case some new views can’t be accesseed with synthetics library, because view binding process starting on view creation stage.

Continue Reading Useful extensions

Android WorkManager

Starting from Android 8.0 all services, which we used for background tasks, loose your rights and opportunities.

But now Android has a new tool, which can start and manage background tasks. Let’s talk about WorkManager.

Continue Reading Android WorkManager

RecyclerView with multiple Holder

Nothing complicated. One additional override method and one additional layout. Now more. I will make a calendar of birthdays of Russian poets and writers. First you need three markups. Screen and two holders: header and data.

Continue Reading RecyclerView with multiple Holder

Advanced Intents

It would seem: what’s so complicated about Intent?

But there are nuances. Intent is declared, startActivity is called with it and that’s it. Well, or with the addition of extra. It’s also easy. Or not?

Continue Reading Advanced Intents