GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SuperEditText/README-en.md at master · Carson-Ho/SuperEditText

Expand file tree

/

README-en.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
146 lines (94 loc) · 3.63 KB
/

README-en.md

Copy path

File metadata and controls

146 lines (94 loc) · 3.63 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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

  • 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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.