max*_*ver 6 android actionbarsherlock
我正在使用sherlock动作栏版本4.1.0 (2012-05-17).如何更改此屏幕截图中文本颜色的颜色?在实际设备上,它几乎是可读的

我有这个主题
<style name="MyTheme" parent="@style/Theme.Sherlock.Light">
<item name="android:textSize">20dp</item>
</style>
Run Code Online (Sandbox Code Playgroud)
这在AndroidManifest.xml中
<application
android:name="abc.MyApp"
android:icon="@drawable/ic_launcher"
android:logo="@drawable/logo"
android:label="@string/app_name"
android:theme="@style/MyTheme"
>
Run Code Online (Sandbox Code Playgroud)
感谢这个答案:更改 searchview 小部件的背景可绘制
SearchManager searchManager = (SearchManager) a.getSystemService(Context.SEARCH_SERVICE);
SearchView searchView = new android.widget.SearchView(a.getApplicationContext());
int searchPlateId = searchView.getContext().getResources().getIdentifier("android:id/search_src_text", null, null);
// Getting the 'search_plate' LinearLayout.
AutoCompleteTextView searchPlate = (AutoCompleteTextView) searchView.findViewById(searchPlateId);
// Setting background of 'search_plate' to earlier defined drawable.
searchPlate.setTextColor(Color.BLACK);
...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2540 次 |
| 最近记录: |