c# - AppCompatActivity ActionbarDrawerToggle -


i changed 1 of activity class inheriting actionbaractivity(because class obsolete in new android version) appcompatactivity. specify icon want navigation drawer use before change, after new actionbardrawertoggle doesn't allow that.

i able implement , display drawer icon, issue i'm having how change color of icon(the 3 lines icon) black white.

the colors of items in toolbar depend on theme.

if using theme.appcompat (the dark theme) icons white. if using theme.appcompat.light icons dark. there theme.appcompat.light.darkactionbar.

more using appcompat library.

this example using theme.appcompat.light.darkactionbar (light theme dark action bar , white icons in actionbar)

<style name="appbasetheme" parent="theme.appcompat.light">     <item name="colorprimary">@color/colorprimary</item>     <item name="colorprimarydark">@color/colorprimarydark</item>     <item name="coloraccent">@color/coloraccent</item>     <item name="theme">@style/themeoverlay.appcompat.dark.actionbar</item> </style> 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -