【发布时间】:2018-02-01 11:12:47
【问题描述】:
如何更改 SearchView 的提示文字颜色?
<android.support.v7.widget.SearchView
android:id="@+id/search"
style="@style/SearchViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@android:color/black"
android:clickable="true"
android:focusable="true"/>
使用 thisandroid:textColorHint="@android:color/black" 没有任何帮助表示感谢
【问题讨论】:
-
@Abhishekkumar 该示例不是支持库,可能是操作栏 sherlock。
-
你能发布你的代码@MohdQasim
-
@Abhishekkumar 我用 xml 代码编辑了我的问题
-
你也可以发布你的searchview的java代码@MohdQasim
标签: android material-design searchview