Android 中actionbar 最右边的三个小点图标怎么替换?想要替换掉系统自带的,求知道的给个答案

如题所述

styles.xml 文件中加上粗体代码


<resources>

   <!-- Base application theme. -->
   <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
       <!-- Customize your theme here.-->
       <item name="colorPrimary">@color/title</item><!-- actionbar color-->
       <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
       <item name="colorAccent">@color/colorAccent</item><!--登录编辑框颜色-->

       <!-- 更换右侧actionbar图标-->
       <item name="android:actionOverflowButtonStyle">@style/OverflowStyle</item>

   </style>

   <style name="OverflowStyle">
       <item name="android:src">@mipmap/setting</item>
   </style>

</resources>

温馨提示:内容为网友见解,仅供参考
第1个回答  2015-05-18
直接把actionBar给隐藏,自己自定一一个菜单不就可以了追问

我当然知道自定义,我只是想知道如何替换系统自带的那个图标

第2个回答  2015-05-19
更换主题呀,在配置文件里设置其他你喜欢的主题追问

额,建议你多学习学习再来回答

追答

额额,建议你多多学习学习再来追问

相似回答