Skip to content

Commit

Permalink
Update readme.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
anshulagarwal06 committed Mar 4, 2016
1 parent 9569553 commit 3a8f6e1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Custom EditTextView to show/hide password with customizable icon.

# How to use


```groovy
<in.anshul.libray.PasswordEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -14,7 +16,16 @@ Custom EditTextView to show/hide password with customizable icon.
android:hint="Confirm password"
app:show_drawable="@drawable/show_password" />
```
Instead of drawable you can also use Text
```groovy
<in.anshul.libray.PasswordEditText
...
app:show_as_text="true"
app:show_text="@string/show_text"
app:hide_text="@string/hide_text"/>
```
# Customise

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

```groovy
dependencies {
compile 'com.github.anshulagarwal06:PasswordEditText:v0.1'
compile 'com.github.anshulagarwal06:PasswordEditText:v1.0'
}
```

Expand Down

0 comments on commit 3a8f6e1

Please sign in to comment.