如何设置选择颜色的EditText在我的自定义主题? (机器人) [英] How to set color of selection in EditText in my custom theme? (android)

查看:127
本文介绍了如何设置选择颜色的EditText在我的自定义主题? (机器人)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了自定义主题,并在我的布局我有一对夫妇的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.

这篇关于如何设置选择颜色的EditText在我的自定义主题? (机器人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆