Prism.Templates icon indicating copy to clipboard operation
Prism.Templates copied to clipboard

Update Xamarin.Forms Android Project

Open dansiegel opened this issue 3 years ago • 1 comments

Summary

The Xamarin.Forms templates have updated the base Android project. Most notably the layout for the Tabbar and Toolbar have been removed and the styles have additionally been updated so that they will automatically come from Xamarin.Forms if not overridden by your styles.

Intended Use Case

Simplify new Prism.Forms Android apps by reducing platform specific configuration. Note that the Styles for the Prism templates should override the styles as described in the default Xamarin.Forms Android project styles.xml so that we provide the same default Prism color scheme that we currently ship.

dansiegel avatar Mar 09 '21 03:03 dansiegel

After I've created a pull request, I've realized that we should probably set the Navbar colors using styles. This way the heading color will also be applied to the iOS project, e.g:

<Style TargetType ="NavigationPage">
    <Setter Property="BarBackgroundColor" Value="#1976D2"/>
    <Setter Property="BarTextColor" Value="White"/>
</Style>

Should we do this, or stick to using the colors specified in styles.xml?

Pietervdw avatar Mar 19 '21 11:03 Pietervdw