Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to use Material Design Toolbar in Android when building app with Xamarin Forms

$
0
0

There are tutorials on how to create the newer action bar in Xamarin Android, but I am not able to reproduce the toolbar when creating an app with Xamarin Forms. Somehow it just doesn't work for me. My main references where:

https://blog.xamarin.com/android-tips-hello-material-design-v7-appcompat/
https://blog.xamarin.com/material-design-for-your-xamarin-forms-android-apps/

I have created the necessary xml files for styles and toolbar and updated my MainActivity.cs to implement FormsAppCompatActivity, but I received invalid casts exceptions. Obviously I am doing something wrong. It would be great to see a step-by-step tutorial on how to achieve the new toolbar in Android using Xamarin Forms.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>