Skip to content

Commit 3a8f6e1

Browse files
Update readme.md file
1 parent 9569553 commit 3a8f6e1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Custom EditTextView to show/hide password with customizable icon.
55

66
# How to use
77

8+
89
```groovy
10+
911
<in.anshul.libray.PasswordEditText
1012
android:layout_width="match_parent"
1113
android:layout_height="wrap_content"
@@ -14,7 +16,16 @@ Custom EditTextView to show/hide password with customizable icon.
1416
android:hint="Confirm password"
1517
app:show_drawable="@drawable/show_password" />
1618
```
19+
Instead of drawable you can also use Text
20+
```groovy
21+
1722
23+
<in.anshul.libray.PasswordEditText
24+
...
25+
app:show_as_text="true"
26+
app:show_text="@string/show_text"
27+
app:hide_text="@string/hide_text"/>
28+
```
1829
# Customise
1930

2031
* `app:show_drawable="@drawable/show_password"`
@@ -44,7 +55,7 @@ After that you can easily include the library in your **app** `build.gradle`:
4455

4556
```groovy
4657
dependencies {
47-
compile 'com.github.anshulagarwal06:PasswordEditText:v0.1'
58+
compile 'com.github.anshulagarwal06:PasswordEditText:v1.0'
4859
}
4960
```
5061

0 commit comments

Comments
 (0)