android - Can not use colored icons for Slide Drawer -


icons using here colored, not show on run. tried app:itemicontint="@null" in xml, no use.

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> 

enter image description here

**this layout file slide drawer appear. have deleted unnecessary code make 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> 

add activity

navi_view.setitemicontintlist(null); 

where navi_view object of navigationview.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -