File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
java/com/broooapps/otpedittext2 Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 32
32
<Button
33
33
android : id =" @+id/button"
34
34
android : layout_width =" 0dp"
35
- android : onClick =" displayText"
36
35
android : layout_height =" wrap_content"
36
+ android : onClick =" displayText"
37
37
android : text =" Click me"
38
38
app : layout_constraintEnd_toEndOf =" parent"
39
39
app : layout_constraintStart_toStartOf =" parent"
40
40
app : layout_constraintTop_toBottomOf =" @id/top" />
41
41
42
42
<TextView
43
+ android : id =" @+id/textView"
43
44
android : layout_width =" wrap_content"
44
45
android : layout_height =" wrap_content"
45
46
android : layout_marginTop =" 80dp"
46
- android : id =" @+id/textView"
47
47
app : layout_constraintEnd_toEndOf =" parent"
48
48
app : layout_constraintStart_toStartOf =" parent"
49
49
app : layout_constraintTop_toBottomOf =" @id/button" />
Original file line number Diff line number Diff line change @@ -122,6 +122,8 @@ private void getAttrsFromTypedArray(AttributeSet attributeSet) {
122
122
mMaskInput = a .getBoolean (R .styleable .OtpEditText_oev_mask_input , false );
123
123
if (a .getString (R .styleable .OtpEditText_oev_mask_character ) != null ) {
124
124
mMaskCharacter = String .valueOf (a .getString (R .styleable .OtpEditText_oev_mask_character )).substring (0 , 1 );
125
+ } else {
126
+ mMaskCharacter = getContext ().getString (R .string .mask_character );
125
127
}
126
128
127
129
if (mBoxStyle != null && !mBoxStyle .isEmpty ()) {
Original file line number Diff line number Diff line change 7
7
<string name =" style_rounded" >rounded_box</string >
8
8
<string name =" style_underline" >underline</string >
9
9
<string name =" style_rounded_underline" >rounded_underline</string >
10
+ <string name =" mask_character" >\u2022</string >
10
11
11
12
</resources >
You can’t perform that action at this time.
0 commit comments