0
Les icônes que j'utilise ici sont toutes coloriées, mais ne s'affichent pas en cours de série. J'ai essayé app: itemIconTint = "@ null" en XML, mais pas d'utilisation.Impossible d'utiliser des icônes de couleur pour le tiroir à diapositives
XML CODE:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/home"
android:title="@string/home"
android:icon="@drawable/icon_home"
app:itemIconTint="@null"/>
<item android:id="@+id/help"
android:title="@string/help"
android:icon="@drawable/icon_help"/>
</menu>
** Ceci est un autre fichier de mise en page était le tiroir de diapositives apparaîtra. J'ai supprimé le code inutile pour le rendre simple **
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
........../>
</LinearLayout>
<android.support.v4.widget.DrawerLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.NavigationView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:menu="@menu/navigation"
android:layout_gravity="start">
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>
</RelativeLayout>
utilisez-vous NavigationView @ Aryan? –
Oui J'utilise Navigation View, j'ajoute également ce code XML. –
ajouter cela à votre activité @Arian –