Android动作栏不再显示了?

时间:2018-05-08 14:41:57

标签: android xml xamarin android-actionbar toolbar

我正在制作一个Android应用程序,在更改设计的主题时,我错误地删除了顶部的操作栏 这是我的Styles.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
 <style name="Theme.DesignDemo" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/ColorPrimary</item>
<item name="colorPrimaryDark">@color/ColorPrimaryDark</item>
<item name="android:windowBackground">@color/window_background</item>
<item name="colorAccent">@color/ColorPrimary</item>
<item name="android:colorBackground">@color/window_background</item>
<item name="windowActionModeOverlay">true</item>
<item name="android:actionBarStyle">@style/MyActionBarTheme</item>



</style>


<style name="MyCustomTheme" parent="@android:style/Theme.Holo.Light">
    <item name="android:actionBarStyle">@style/MyActionBarTheme</item>
</style>

<style name="MyActionBarTheme" parent="@android:style/Widget.Holo.Light.ActionBar">
    <item name="android:background">@color/ColorPrimaryDark</item>
</style>

<style name="Base.Theme.DesignDemo" 
parent="Theme.AppCompat.Light">

如何让它再次显示?

0 个答案:

没有答案