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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -