更改android中“编辑文本"框的外观 [英] change the look of Edit Text box in android
本文介绍了更改android中“编辑文本"框的外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改编辑文本视图的方式...我找到了一些答案,但是它们某种程度上不能解决我的目的... 请提供解决方案.
I want to change the way the edit text view looks like... I have found a few answers but they somehow don't solve my purpose... Please kindly provide solutions.
推荐答案
尝试.
您可以执行以下操作来制作一个圆形的编辑框:
You can do something like this to make a rounded edit box:
在值文件夹中创建styyles.xml.
Make styyles.xml in values folder.
<solid android:color="#FFFFFF"/>
<stroke
android:width="2dp"
android:color="#E7E7E7"
android:height="10dp"/>
<corners
android:radius="5dp"/>
然后您可以在xml中使用它,例如:
You can then use it in xml like :
<EditBox
style="@style/Edit_box_background"
other attributes....
/>
这篇关于更改android中“编辑文本"框的外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文