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

After changing from FormsApplicationActivity to FormsAppCompatActivity some design is not working

$
0
0

Hi!

I changed my MainActivity to use FormsAppCompatActivity to be able to support Android 6.0 Runtime Permission, which was pretty messy to fix in Xamarin Forms.

When I did this, I had to change my styles.xml to instead of using @android:style/Theme.Material.Light and @android:style/Theme.Holo.Light, since FormsAppCompatActivity demanded it.

When building and running the new version, my buttons and other objects looked a bit different than before. Now the app got material support on devices < 5.0, which is great :).

Button attributes like BorderRadius = 10, BorderWidth = 1, BorderColor = Color.White.ToFormsColor () is not working anymore.

Also buttons that I had with transparent background got a shadow around it. It seems to be possible to set android:stateListAnimator="@null" on buttons to remove the shadow.

Do I need to create a custom renderer to fix my problems??


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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