应用样式EditText元素
问题描述:
我正在开发一个Android应用程序。应用样式EditText元素
为了让UI更具吸引力,我想缩小EditText文本并应用背景颜色和形状。
我还必须能够从EditText中删除该元素。
看一看这个 Google plus App
答
用这个作为一个XML文件来圆你的EditText并设置为任何你想要的颜色...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#eeffffff" />
<corners android:bottomRightRadius="8dip"
android:bottomLeftRadius="8dip" android:topRightRadius="8dip"
android:topLeftRadius="8dip"/>
</shape>
谢谢,但我不想申请edittext文本的样式,编辑文本内容包含逗号分隔的文本。我想将样式应用于它们 – siva 2012-04-08 18:07:55
再次阅读您的问题它在哪里指定您希望编辑文本中的文本的样式? – 2012-04-09 04:36:32