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

前端 未结 6 1369
不思量自难忘°
不思量自难忘° 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 18:18

    You can see these attributes in http://androiddrawables.com/Other.html.

    Change your values/styles.xml, for instance:

    
    

    where @color/cursor is added in values/color.xml. After that apply the style to the activity:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTheme(R.style.AppTheme_Cursor);
        ...
    

    Visit How to change EditText pointer color (not cursor) for other solutions.

提交回复
热议问题