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

Xamarin.Forms and Android AppCompat Theme

$
0
0

Hi everyone,

I'm using Xamarin.Forms to make an Android application (Lollipops 5.1, API 22 on Nexus 5 with Android Player atm.).

I wanted to customize the tab/nav bar so i used an AppCompat Activity and the following customized theme :


<style name="AppTheme.Compat" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">#1565C0</item> <item name="colorPrimaryDark">#0D47A1</item> <item name="colorAccent">#FF80AB</item> <item name="colorControlNormal">#757575</item> <item name="colorControlActivated">#FF6E40</item> <item name="colorControlHighlight">#FF4081</item> <item name="colorSwitchThumbNormal">#BDBDBD</item> <item name="android:colorButtonNormal">#BDBDBD</item> <item name="android:colorEdgeEffect">#FF4081</item> </style>

When i first launch the app, everything is fine, but when i navigate to another page, the navbar move slightly up and get hidden by the status bar.

Any idea of what is happening ? Maybe i miss a configuration. For information, when i use the Material Theme without AppCompat, everything works fine.

Best regards,

Armand


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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