【发布时间】:2016-08-14 07:01:04
【问题描述】:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:appcompat="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity">
<item
android:id="@+id/action_search"
android:icon="@drawable/search"
appcompat:actionViewClass="android.support.v7.widget.SearchView"
appcompat:showAsAction="ifRoom"
android:title="Search"/>
</menu>
我想把右上角的search image改成黑色,我想把它改成橙色
【问题讨论】:
-
目前是黑色的。这是一张黑色的图像。您必须创建一个颜色为橙色的图像。并替换它!!!
-
已经试过了,但是不行
-
请发布您的代码以获得更好的答案
-
黑色图片是默认图片,我已经在menu.xml文件中添加了橙色图片。但仍然显示黑色图像。
标签: android