我的父主题是Theme.AppCompat.Light.DarkActionBar,我在清单文件中添加了 ,并为具有不同颜色的操作栏创建了自定义style.xml,而不是所有操作酒吧不可见我该怎么办?我正在使用android studio和lolipop版本。Android自定义操作栏未显示
style.xml
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:windowActionBar">true</item>
</style>
<style name="CustomActionBarTheme"
parent="@style/Theme.AppCompat.Light">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar"
parent="@style/Widget.AppCompat.ActionBar">
<item name="android:background">#800000</item>
</style>
的Manifest.xml
<application`enter code here`
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme" >
<activity android:name=".SplashScreen`enter code here`Activity"
您可以发布您的参考代码吗? –
为避免被低估,建议您发布迄今为止已尝试过的相关代码片段。 –
@Maria'ActionBarActivity' jo代码post kayo ..和Custom Action Bar的xml jo bhi .. –