In meiner Navigationsleiste sieht mein Listenansichtssymbol wie folgt aus: check image. Das bedeutet, dass ich das Symbol auf den Hintergrund gelegt habe.Hintergrund der Navigationsleiste festlegen
ich durch das Rahmenlayout weiß, kann ich das Symbol auf einem Bild setzen, aber ich bin verwirrt, wie kann ich es tun, wenn es in einem res/menu
Ordner
menu.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:checkableBehavior="single">
<item
android:id="@+id/nav_home"
android:icon="@drawable/ic_home_white_24dp"
android:title="@string/nav_item_home" />
<item
android:id="@+id/appointment_history"
android:icon="@drawable/appointment_icon"
android:title="@string/nav_history" />
<item
android:id="@+id/contact_us"
android:icon="@drawable/contact_us_icon"
android:title="@string/nav_contact_us" />
<item
android:id="@+id/nav_settings"
android:icon="@drawable/setting_icon"
android:title="@string/nav_setting" />
</group>
</menu>
erklärt hat
Style.xml
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="RatingBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorControlNormal">#00BFF3</item>
<item name="colorControlActivated">#00BFF3</item>
</style>
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/background_splash</item>
</style>
<style name="MyCustomToolBarTheme" parent="ThemeOverlay.AppCompat.Light">
<item name="android:textColorPrimary">@color/colorAccent</item>
</style>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="MyMaterialTheme" parent="MyMaterialTheme.Base">
</style>
<style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
012 v
<style name="MyMaterialTheme" parent="MyMaterialTheme.Base">
<item name="android:windowContentTransitions">true</item>
<item name="android:windowAllowEnterTransitionOverlap">true</item>
<item name="android:windowAllowReturnTransitionOverlap">true</item>
<item name="android:windowSharedElementEnterTransition">@android:transition/move</item>
<item name="android:windowSharedElementExitTransition">@android:transition/move</item>
</style>
nicht Sir Arbeits –
ich weitere Informationen und einen Screenshot von dem Ergebnis hinzugerechnet wurde. –
Sir Ihre Lösung ist teilweise funktioniert ... auf Kitkat funktioniert es perfekt, aber auf Lollipop ist es zeigt den transparenten Hintergrund –