Android Components investigation – part 2 – ViewModel + Lifecycle that’s time really

In this short post I’ll fix the problem, occurred during writing previous article (it is no official way to connect data binding and ViewModel)- that’s time we will use android components to store screen state during phone rotation. To implement this, I removed databinding library from my project and add live data libraries instead. It is needed to mention that activity layout file was changed also – databinding root layout is removed. To connect xml-views with activities I’ll use popular butter knife library, so it is added into my project also. Continue reading Android Components investigation – part 2 – ViewModel + Lifecycle that’s time really

Android Components investigation – part 1 – ViewModel and Lifecycle aware components

In this post I will try use newly released android components for the real-life application example. Lets start from ViewModel class and new approach to handle android lifecycle. Full project example can be found on my github, brach databinding. Continue reading Android Components investigation – part 1 – ViewModel and Lifecycle aware components