We have put together the views we will be working with. Notice the orderInCategory, this is the order of tab items from left to right.Īlright, so far so good. First, we need the navigation items (tabs) for the BottomNavigationView, we will add a navigation menu for this. Resources\layout\TheFragmentLayout.axml Step 1: Setup BottomNavigationView We will keep it simple with an icon and a label. Let’s create a layout for Fragment as well. We will add a FrameLayout to hold our Fragment, a ViewPager, and a BottomNavigationView from the library, Now, let’s create a layout for our MainActivity. Since I am dealing with Fragments, I will change my MainActivity base class to 4.App.FragmentActivity, and yes we will be using Android Support library V4. Let’s start by creating a solution in Visual Studio for Mac (my IDE for this tutorial).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |