java - Customising Default Navigation Drawer Activity Vector Icons -
i'm trying customise , colourise default navigation drawer activity
on android studio 2.1.2. i've changed color of ic_menu_camera.xml
file in following way--
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportheight="24.0" android:viewportwidth="24.0"> <path android:fillcolor="#f73a3a" //changed colour android:pathdata="m12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0" /> <path android:fillcolor="#f73a3a" //changed colour android:pathdata="m9,2l7.17,4h4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2v6c0,-1.1 -0.9,-2 -2,-2h-3.17l15,2h9zm3,15c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z" /> </vector>
the colour changes in preview window per screenshot below-
however, colour changed again default black/dark grey when app launched--
how can implement changed color here?
you need set setitemicontintlist
null during oncreate
yourview.setitemicontintlist(null);
now can edit vector assets directly , changes show.
Comments
Post a Comment