You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Setting desired length for the OTP(One time password code)
55
-
56
-
To set custom length of the OtpEditText, use
57
-
58
-
```android:maxLength="{your length}"```
59
-
60
-
This will automatically generate the right amount of boxes for user to input the code in.
61
-
62
-
### Setting primary custom color
63
-
The primary color signifies the boundary of the box that requires input from user.
64
-
To change that use,
65
-
66
-
```app:oev_primary_color="@color/{your_color}"```
67
-
35
+
Step 4. Refer this View in your activity file, create a List<DataModel> and populate it with your values, use this list and invoke `setData(List<DataModel> dataModel, int range)`.
68
36
69
-
### Setting secondary custom color
70
-
The secondary color signifies the boundary of the boxes that do not require input from user.
71
-
To change that use,
37
+
The second param is the entire span graph view, and `value` param in each DataModel object will occupy a percent length.
38
+
Width of each item is calculated by `model.value / range * viewWidth`.
Suppose you want the rounded underline option to be displayed. Then, please add:
92
-
`app:oev_box_style="@string/style_rounded_underline" ` in the OtpEditText xml code.
93
-
94
-
### Masking input characters with Asterisk.
95
-
Functionality to mask the input with any special character has been introduced.
96
-
To mask the input;
97
-
```
98
-
app:oev_mask_input="true"
99
-
```
100
-
xml property must be introduced in the XML layout file.
49
+
lgv.setData(dm, 999);
101
50
102
-
#### Masking with any other special character.
103
-
To mask input with any character other than `*` you can do the following;
104
-
```
105
-
app:oev_mask_character="ø"
106
51
```
52
+
The above code will result in this:
53
+

107
54
108
-
P.S. Please note that, in case of masking with a special character other than `*`, specify string with length one, otherwise the input string will be truncated to length 1.
55
+
## How to customize the view.
56
+
### Setting custom border color
109
57
110
-
### OnComplete callback for the View
111
-
To implement an OnComplete callback, use `setOnCompleteListener` setter method and pass on an interface implementation.
0 commit comments