Skip to content

Latest commit

 

History

History
146 lines (94 loc) · 3.63 KB

README-en.md

File metadata and controls

146 lines (94 loc) · 3.63 KB

Super_EditText

中文文档

  • Author:Carson_Ho
  • Summary

示意图

1. Introduction

a simple & useful Android DIY View for EditText

Carson_Ho的Github地址:Super_EditText

效果图

2. Application Scenarios

Batch delete & High Diy style

3. Feature

  • Fresh & concise style
  • Easy to use
  • Secondary Programming costs are low

4. Usage

Step 1:Import Library

There are two ways to import Library:

    1. For Gradle build.Gradle
dependencies {
    compile 'com.carson_ho:Super_EditText:1.0.0'
}
    1. For Maven pom.xml
<dependency>
  <groupId>com.carson_ho</groupId>
  <artifactId>Super_EditText</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>
Step 2:Set Animation Attributes
  • 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>

5. Complete Demo

Carson_Ho的Github地址:Super_EditText

效果图

6. Source code analysis

Android Diy View:SuperEditText Source code analysis

7. LICENSE

Super_EditText is available under the MIT license.

8. Contribute

Before you open an issue or create a pull request, please read Contributing Guide first.

9. Release

2017-08-14 v1.0.0 :finish basic function

About the author