就是上圖那個按鈕
2 回答

翻過高山走不出你
TA貢獻1875條經驗 獲得超3個贊
默認情況下你應該使用的是style.xml
中的AppTheme
主題(這個可以在AndroidManifest.xml
中看出來)。假設是這樣,那么你可以通過以下方法改變 drawer 按鈕的顏色:
進入
style.xml
;增加一種繼承自
Widget.AppCompat.DrawerArrowToggle
的style,這里叫做"DrawerArrowStyle"。在里面加上你想要的顏色,這里比如@color/colorBlue
;在 style "AppTheme" 中增加一行名為 drawerArrowStyle 的這種 style。
這樣一來,style 中便有如下兩項:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
...
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
</style>
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="color">@color/colorBlue</item>
</style>
再運行你就看到結果了。
添加回答
舉報
0/150
提交
取消