How to change color / appearance of EditText select handle / anchor?

前端 未结 6 1355
不思量自难忘°
不思量自难忘° 2020-11-27 17:46

So I changed the style of the Holo Theme with the Holo Colors Generator and Action Bar Style Generator to my own color. But when I select text inside an edit text, the \"mar

6条回答
  •  渐次进展
    2020-11-27 17:56

    The worst part here was to find the "name" for this item and how it is called inside the theme. So I looked through every drawable in the android SDK folder and finally found the drawables named "text_select_handle_middle", "text_select_handle_left" and "text_select_handle_right".

    So the solution is simple: Add these drawables with customized design/color to your drawable folder and add them to your theme style definition like:

    
    

提交回复
热议问题