EditText是基于官方二次开发的控件,它在原有的基础上增加了六个属性,使用起来更加灵活。
<com.hacknife.edittext.EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft=""
app:drawable_height=""
app:drawable_width=""
app:drawable_marginLeft=""
/>
合并以下代码到需要使用Module的dependencies中。
dependencies {
...
compile 'com.hacknife:edittext:1.0.3'
}