如何设置选择颜色的EditText在我的自定义主题? (机器人)我的、自定义、机器人、如何设置

2023-09-07 00:52:26 作者:我在屏幕前痛哭到撕心裂肺、

我创建了自定义主题,并在我的布局我有一对夫妇的EditText意见。由于我设置

I created my custom theme and in my layouts I have a couple of EditText views. 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, i.e. set the color of selection to needed color?

最佳,DEVETI

Best, Deveti

推荐答案

设置的android:textColorHighlight 您preferred颜色

Set android:textColorHighlight to your preferred color.