Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj authored Sep 2, 2018
1 parent c2ec8a9 commit f6fb523
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ allprojects {
- **App level `build.gradle`**
```gradle
dependencies {
implementation 'com.poovam:pin-edittext-field:1.0.7'
implementation 'com.poovam:pin-edittext-field:1.0.8'
}
```

Expand Down Expand Up @@ -76,8 +76,9 @@ dependencies {
final LinePinField linePinField = findViewById(R.id.lineField);
linePinField.setOnTextCompleteListener(new PinField.OnTextCompleteListener() {
@Override
public void onTextComplete(@NotNull String enteredText) {
public boolean onTextComplete (@NotNull String enteredText) {
Toast.makeText(MainActivity.this,enteredText,Toast.LENGTH_SHORT).show();
return true; // Return true to keep the keyboard open else return false to close the keyboard
}
});
```
Expand All @@ -91,7 +92,8 @@ linePinField.setOnTextCompleteListener(new PinField.OnTextCompleteListener() {
- Use any type of keyboard you would like for the View.
- Customize the distance between your Pin Fields.
- Enable or disable cursor to your Pin Fields.
- Highlight only the currently active Field or the whole Pin Field
- Highlight only the currently active Field or the whole Pin Field.
- Keep the keyboard open or closed after the Text is entered.

License
=======
Expand Down

0 comments on commit f6fb523

Please sign in to comment.