Je suis en train de mettre drawable comme l'image pour actionbar dans mon activité, en utilisant @style, mais ne voit pas de résultat ... Ceci est mon @styles:Comment configurer l'image actionbar avec @style
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</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">@drawable/bgd</item>
</style>
Ceci est mon code d'activité:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:theme="@style/MyCustomTheme"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="52dp"
android:layout_alignParentBottom="true"
app:bb_behavior="shifting|underNavbar"
app:bb_tabXmlResource="@xml/bottombar_tabs_main_screen"/>
STAM est ce que j'ai:
C'est que actionbar, je veux obtenir:
Avez-vous inclus le style MyCustomTheme dans votre manifeste? –
Quel est le thème de votre application? Avez-vous utilisé Theme.AppCompat pour un thème d'activité ou d'application associé? Pouvez-vous fournir votre code manifeste? –