原作者连接:https://blog.csdn.net/carson_ho/article/details/77179764
<scut.carson_ho.diy_view.SuperEditText
app:ic_left_click="@drawable/ic_left_click"
app:ic_left_unclick="@drawable/ic_left_unclick"
app:left_x="0"
app:left_y="0"
app:left_width="60"
app:left_height="60"
app:ic_delete="@drawable/delete"
app:delete_x="0"
app:delete_y="0"
app:delete_width="80"
app:delete_height="80"
app:lineColor_click="#1296db"
app:lineColor_unclick="#9b9b9b"
app:linePosition="1"
app:cursor="@drawable/cursortest"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
//ic_left_click
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/user2"/>
</selector>
//ic_left_unclick
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/user"/>
</selector>
//coursotest
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#1296db"/>
<size android:width="1dp"/>
</shape>
本文详细介绍了自定义SuperEditText控件的属性设置,包括点击和未点击状态下的图标资源、位置参数、删除图标、线条颜色及位置、光标样式等。通过具体的XML配置示例,展示了如何实现该控件的个性化定制。
425

被折叠的 条评论
为什么被折叠?



