First and foremost, we must work on the activity_main.xml layout file. Modify the file to contain the following code:
<?xml version="1.0" encoding="utf-8"?><android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ui.main.MainActivity"> <LinearLayout android:id="@+id/ll_container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"/></android.support.design.widget.CoordinatorLayout>
Within the root view of the layout file, we have a single LinearLayout. This ViewGroup will act as ...