如何使用形状制作这个自定义edittext?
http://www.noelshack.com/2015-15-1428418773-form3.png
我已尝试android:drawableLeft
,但结果不匹配
rectangle_shape.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#3498db" />
</shape>
shape.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/rectangle_shape"/>
<item android:drawable="@drawable/user"/>
</layer-list>