Skip to content

Commit 0eb06b9

Browse files
committed
Update README.md
1 parent 6ba2566 commit 0eb06b9

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ EditTextPin for Android
88

99
This is a simple library for android where we can take an OTP input from the user. This library will take only number input for now. The lenght is six digits. This library handles both insering and deleting of numbers. You can get the pin using getPin() function.
1010

11-
[<img src="media/demo.gif" width="300" />]()
11+
[<img src="media/demo.gif" width="300" />]()[<img src="media/demo1.png" width="300" />]()
1212

1313
## Gradle
1414

@@ -45,4 +45,17 @@ dependencies {
4545
EditTextPin editTextPin = findViewById(R.id.editTextPin);
4646
String pin = editTextPin.getPin(); //To get the current entered pin
4747
```
48+
You're able to further customize or set initial values with styled attributes:
49+
50+
1) Add res-auto to your xml layout if you haven't yet
51+
52+
```XML
53+
xmlns:app="http://schemas.android.com/apk/res-auto"
54+
```
55+
56+
2) After that the following attributes will become available:
57+
58+
```XML
59+
app:underlineColor="" <!-- To change underline color-->
60+
```
4861

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
app:layout_constraintTop_toTopOf="parent"
3939
app:underlineColor="@android:color/holo_green_dark"/>
4040

41+
4142
</LinearLayout>

media/demo1.png

4.86 KB
Loading

0 commit comments

Comments
 (0)