diff --git a/README.md b/README.md index 4ba00d8..9c14953 100644 --- a/README.md +++ b/README.md @@ -104,4 +104,13 @@ PinEntryEditText support all normal editText attributes, It also supports follow + + + + + + + + + ``` diff --git a/app/src/main/res/drawable/bottom_focused.xml b/app/src/main/res/drawable/bottom_focused.xml new file mode 100644 index 0000000..e7754a6 --- /dev/null +++ b/app/src/main/res/drawable/bottom_focused.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/bottom_selected.xml b/app/src/main/res/drawable/bottom_selected.xml new file mode 100644 index 0000000..d5307b7 --- /dev/null +++ b/app/src/main/res/drawable/bottom_selected.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/bottom_unfocused.xml b/app/src/main/res/drawable/bottom_unfocused.xml new file mode 100644 index 0000000..29b88b6 --- /dev/null +++ b/app/src/main/res/drawable/bottom_unfocused.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 534c49a..58f851f 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -28,7 +28,10 @@ app:lineCornerRadius="4dp" app:lineWidth="2dp" app:selectedStateLineColor="@android:color/holo_red_dark" - app:unFocusedStateLineColor="@android:color/darker_gray" /> + app:unFocusedStateLineColor="@android:color/darker_gray" + app:unFocusedStateBackgroundDrawable="@drawable/bottom_unfocused" + app:focusedStateBackgroundDrawable="@drawable/bottom_focused" + app:selectedStateBackgroundDrawable="@drawable/bottom_selected"/> + + + \ No newline at end of file