如何更改Android的EDITTEXT彩色边框 [英] How to change Edittext color border in Android

查看:141
本文介绍了如何更改Android的EDITTEXT彩色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序白的主题,但对我的边界
EditTexts是看不见的。
我怎样才能改变一个EditText为黑色,例如颜色边框?
谢谢你。

I have a white theme in my application, but the borders of my EditTexts are invisible. How can I change the color border of an EditText to black color for example ? Thanks.

推荐答案

您需要创建一个自定义的绘制并设置为背景以您编辑文本。欲了解更多详细信息,请参阅并的这个

You need to create a custom drawable and set as background to your edit text. For more details read this and this

这篇关于如何更改Android的EDITTEXT彩色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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