私はTabhostを使用していません(そして使用したくありません)。すべてを試しました:
これは私のアクションバーで、暗いアクションバーでホロライトを使用しています
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
この便利なウェブサイトを試してみましたが、成功しませんでした。
私も失敗しました
actionBar.setStackedBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.color_brown_dark)));
ここに私のstyles.xmlがあります
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
<item name="android:actionBarStyle">@style/Lemonbar</item>
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
Lemonbar は Theme.Holo.Light.DarkActionBar をオーバーライドするスタイルで、Android アクション バー スタイル ジェネレーターを使用して作成されます。アプリを起動すると、新しいスタイルが適用されていないように、アクションバーは以前と同じです