Set Active Theme Attribute and occurred exception

chaiweiwuchaiweiwu TWMember ✭✭
edited December 2014 in Xamarin.Forms

I want hide ActionBar and use the theme, but set Theme Attribute occurred exception....

Somebody can help me how to fix it.....
image

this is "style.xml"
<?xml version="1.0" encoding="UTF-8" ?> <resources> <style name="NoActionBarTheme" parent="android:Theme.Holo.Light"> <item name="android:windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style> </resources>

Posts

  • chaiweiwuchaiweiwu TWMember ✭✭
    edited December 2014

    hay I solve hide ActionBar problem,
    add the code after "SetPage(App.GetMainPage());"

    Xamarin.Forms.Forms.SetTitleBarVisibility (Xamarin.Forms.AndroidTitleBarVisibility.Never);

    I still do not know ,why assign theme occurred exception.....

Sign In or Register to comment.