- Author:Carson_Ho
- Summary
a simple & useful Android DIY View for EditText
Batch delete & High Diy style
- Fresh & concise style
- Easy to use
- Secondary Programming costs are low
There are two ways to import Library:
-
- For Gradle build.Gradle
dependencies {
compile 'com.carson_ho:Super_EditText:1.0.0'
}
-
- For Maven pom.xml
<dependency>
<groupId>com.carson_ho</groupId>
<artifactId>Super_EditText</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
- Attributes Description:
- Use examples
activity_main.xml
<scut.carson_ho.diy_view.SuperEditText
android:layout_width="200dp"
android:layout_height="wrap_content"
// 设置左侧图标
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="@color/colorfocus"
app:lineColor_unclick="@color/colorDeafult"
app:linePosition="1"
// 设置光标
app:cursor="@drawable/cursortest"
/>
cursortest.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@color/colorfocus" />
<size android:width="1dp" />
</shape>
Carson_Ho的Github地址:Super_EditText
Android Diy View:SuperEditText Source code analysis
Super_EditText is available under the MIT license.
Before you open an issue or create a pull request, please read Contributing Guide first.
2017-08-14 v1.0.0 :finish basic function
- ID:Carson_Ho
- 简介:CSDN签约作者、简书推荐作者、稀土掘金专栏作者
- E - mail:[email protected]
- Github:https://github.com/Carson-Ho
- CSDN:http://blog.csdn.net/carson_ho
- 简书:http://www.jianshu.com/u/383970bef0a0
- 稀土掘金:https://juejin.im/user/58d4d9781b69e6006ba65edc