各位大神,我要用一个带描边效果的Edittext。 搜了一下网上都是Textview,求一个Edittext的描边
main.xml
<?xml version="1.0" encoding="utf-8"?>
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<EditText
android:id="@+id/et"
android:layout_width="251dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:drawableLeft="@drawable/title"
android:background="@drawable/shape"
android:padding="10px"
android:hint="北京"
android:singleLine="true"
android:textColor="#FFFAFA"/>
在drawable中建一个xml文件:shape.xml
<?xml version="1.0" encoding="utf-8"?>
android:width="2px"
/>
怎么没显示出来。。。。shape.xml
01.<?xml version="1.0" encoding="utf-8"?>
02.
03.
04.
05. 06. android:width="2px"
07. />
08.
http://blog.csdn.net/liushengmeng/article/details/8121394
擦,显示有问题,看这个连接吧
你写的不对,参考
http://m.blog.csdn.net/blog/yueqinglkong_11109/12213143