-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fengt
committed
Oct 13, 2016
1 parent
85950c9
commit b84bd3f
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
> ## Example——Customize EditText | ||
--- | ||
|
||
> ### Preview | ||
![example.gif](http://upload-images.jianshu.io/upload_images/2071764-b45df6bf1d00205e.gif) | ||
|
||
|
||
![example.gif](http://upload-images.jianshu.io/upload_images/2071764-7be37be47251b7d4.gif) | ||
|
||
> ### usage: | ||
1. xml Add to | ||
|
||
<anfq.numedittext.lib.AnFQNumEditText | ||
android:id="@+id/anetDemo" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"/> | ||
|
||
2. java Set up | ||
|
||
anetDemo = (AnFQNumEditText) findViewById(R.id.anetDemo); | ||
anetDemo.setEtHint("content")//Set prompt text | ||
.setEtMinHeight(200)//Set minimum height in px | ||
.setLength(50)//Set the total number of words | ||
//type(SINGULAR)(PERCENTAGE) | ||
.setType(AnFQNumEditText.SINGULAR) | ||
.setLineColor("#3F51B5")//Setting horizontal color | ||
.show(); | ||
> #### [blog Address](http://www.jianshu.com/p/383ba123c201) | ||
> [English](https://github.com/FTandJYQ/AnFQNumEditText/blob/master/README-En.md)|[中文](https://github.com/FTandJYQ/AnFQNumEditText/blob/master/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters