右上にメニューがあり、左上に戻るボタンがあるはずのアプリで ActionBar を使用しています。私は 2 つの Xoom タブレットを持っています。1 つは Honeycomb を実行し、もう 1 つは ICS を実行しています。ICS タブレットでは左上に戻るボタンが正しく表示されますが、ハニカム タブレットでは表示されません。助言がありますか?
それはテーマの問題かもしれないと感じています。ハニカム用と ICS 用の 2 つの個別の theme.xml ファイルがあります。
ハニカム theme.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="custom_theme" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/content_direct_theme.ActionBar</item>
<item name="android:homeAsUpIndicator">@drawable/logowithbackarrow</item>
<item name="android:actionMenuTextColor">?android:attr/textColorPrimaryInverse</item>
<item name="android:actionModeStyle">@style/ActionModeInverse</item>
<item name="android:actionOverflowButtonStyle">@android:style/Widget.Holo.ActionButton.Overflow</item>
</style>
<style name="custom_alert_dialog" parent="android:Theme.Dialog">
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item>
</style>
<style name="custom_theme.ActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/dark_gradient</item>
</style>
</resources>
ICS テーマ .xml:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="custom_theme" parent="android:Theme.Holo.Light.DarkActionBar">
</style>
<style name="custom_dialog" parent="android:Theme.Dialog">
<item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item>
</style>
</resources>
注:テキストが奇妙に見えたため、ハニカムに Theme.Holo.Light.DarkActionBar テーマを使用できませんでした。