Use Tab layout in MVVM architecture with the data binding library
问题 I am developing an app that has tab layout as the image. I’d like to use MVVM architecture with data binding library but I am new with this framework. I can do this without using MVVM by normally setup tab layout using ViewPager as this sample. Normal tab layout without MVVM and data binding: activity_main.xml: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width=