[英]How to set color of selection in EditText in my custom theme? (android)
I created my custom theme and in my layouts I have a couple of EditText views. 我创建了自定义主题,并且在布局中有几个EditText视图。 Since I set 自从我设定
android:selectAllOnFocus="true"
,I've noticed that the color of selection is default one for my phone, so I was wondering can I set some attribute and which, of course, in my definition of my theme to have a desired effect, ie set the color of selection to needed color? ,我注意到选择的颜色是手机的默认颜色,因此我想知道是否可以设置一些属性,当然,在我定义主题的过程中,该属性具有期望的效果,即设置选择的颜色所需的颜色?
Best, Deveti 最好的,德芙蒂
将android:textColorHighlight
设置为您喜欢的颜色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.