The bottom navigation is a very simple and easy template from Android Studio, the porting took 15 minutes at most and the result is quite appealing.
Ported from the Android Studio template, quick and easy the Navigation Drawer was way harder than this.
All the code is available at the xamarin-templates repo
My IDE is VS2017 and I created a “Blank App (Android)” project. I decided for:
- Minimum Android version: Android 5.0 (API Level 21 - Lollipop)
- Target Framework: Android 7.1 (Nougat)
- Target Android version: “Use compile using SDK version”
All the NuGet packages installed, be aware that I only choose a couple of them, the other are dependencies.
TIP Always look at the Android Manifest for the theme of the app, in Xamarin I opted for the Theme Attribute on the Activity. Don’t know if there are other options.
TIP There are several resources to copy in order to make the project work. Look at the source code for the details.
The java source code
The C# version, I think that the C# properties give a better readability to the code.
That’s it :)