Przeczytałem wpis, aby ustawić niestandardowy motyw Nawigacja dla Holo. Czy jest coś podobnego do appcompat (Theme.AppCompat.Light.DarkActionBar)?
<style name="Theme.Main" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/Widget.ActionBar</item>
</style>
<style name="Widget.ActionBar" parent="android:Widget.Holo.Light.ActionBar">
<item name="android:displayOptions">showHome|useLogo|showCustom</item>
<item name="android:customNavigationLayout">@layout/custom</item>
</style>
Odpowiedzi:
0 dla odpowiedzi № 1Spróbuj tego:
<style name="Theme.Main" parent="@style/Theme.AppCompat.Light">
<item name="android:actionBarStyle">@style/Widget.ActionBar</item>
</style>
<style name="Widget.ActionBar" parent="@style/Widget.AppCompat.Light.ActionBar">
<item name="android:displayOptions">showHome|useLogo|showCustom</item>
<item name="android:customNavigationLayout">@layout/custom</item>
</style>
-1 dla odpowiedzi № 2
możesz to ustawić w manifeście Androida
AndroidManifest.xml:
<activity android:name="com.example.Activity1"
android:theme="@style/CustomActionBarTheme"
/>