Sid*_*Sid 38 android menu colors options
我想将选项菜单的点颜色更改为白色.我试图为此添加图像但不起作用.这该怎么做?
menu xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.siddhi.timetablelayout.Main2Activity">
<item android:id="@+id/action_settings" android:title="@string/action_settings"
android:orderInCategory="100" app:showAsAction="never"
android:icon="@drawable/ic_more_vert_white_48dp"/>
</menu>
Run Code Online (Sandbox Code Playgroud)
谢谢.
ayz*_*sci 84
把它放进你style.xml
的AppTheme
:
<!-- android:textColorSecondary is the color of the menu overflow icon (three vertical dots) -->
<item name="android:textColorSecondary">@color/white</item>
Run Code Online (Sandbox Code Playgroud)
And*_*eek 17
您可以使用以下样式声明更改用于它的图像.
<style name="MyCustomTheme" parent="style/Theme.Holo">
<item name="android:actionOverflowButtonStyle">@style/MyCustomTheme.OverFlow</item>
</style>
<style name="MyCustomTheme.OverFlow">
<item name="android:src">@drawable/my_overflow_image</item>
</style>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
34091 次 |
最近记录: |