I am attempting to change the color of the blinking cursor on the SearchView widget in ICS+. I have tried the following:
- Adding
<item name="android:textCursorDrawable">@null</item>
to my
theme
- Adding a style for AutoCompleteTextViews to my theme and setting the textCursorAttribute of that style to @null
- Setting
android:textCursorDrawable="@null"
directly on the SearchView
I read the answer here (Custom cursor color in SearchView), but there is not a non-ABS style for searchAutoCompleteTextView, so could not try this. I also looked for a Java method to set the text cursor drawable, but could not find one - I am modifying other aspects of the SearchView in Java and would be able to do so with the cursor if there were a method available.
I have customized the SearchView pretty extensively, but this one last change is keeping it from looking right - the cursor is white on a white background, so it is not easily visible. Any other ideas of things I can try?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…