|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<LinearLayout |
| 2 | +<FrameLayout |
3 | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
4 | 4 | xmlns:tools="http://schemas.android.com/tools" |
| 5 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
5 | 6 |
|
6 | | - android:orientation="vertical" |
7 | 7 | android:layout_width="match_parent" |
8 | 8 | android:layout_height="match_parent" |
9 | 9 | android:paddingBottom="@dimen/activity_vertical_margin" |
10 | | - android:paddingLeft="@dimen/activity_horizontal_margin" |
11 | | - android:paddingRight="@dimen/activity_horizontal_margin" |
12 | 10 | android:paddingTop="@dimen/activity_vertical_margin" |
13 | 11 | tools:context=".ui.PinActivity"> |
14 | 12 |
|
15 | | - <TextView |
16 | | - android:id="@+id/pinPrompt" |
| 13 | + <co.paystack.android.design.widget.PinPadView |
| 14 | + android:id="@+id/pinpadView" |
17 | 15 | android:layout_width="match_parent" |
18 | | - android:layout_height="wrap_content" |
19 | | - android:layout_marginLeft="@dimen/paystack_____view____margin" |
20 | | - android:layout_marginRight="@dimen/paystack_____view____margin" |
21 | | - android:gravity="center" |
22 | | - android:padding="@dimen/paystack_____view____margin" |
23 | | - android:text="To confirm that you are the owner of this card please enter your card PIN" /> |
24 | | - |
25 | | - <com.alimuzaffar.lib.pin.PinEntryEditText |
26 | | - android:id="@+id/pinEntryView" |
27 | | - android:layout_width="match_parent" |
28 | | - android:layout_height="wrap_content" |
29 | | - android:layout_marginLeft="@dimen/paystack_____view____margin" |
30 | | - android:layout_marginRight="@dimen/paystack_____view____margin" |
31 | | - android:padding="@dimen/paystack_____view____margin" /> |
32 | | - |
33 | | - <Button |
34 | | - android:id="@+id/continueButton" |
35 | | - android:layout_width="match_parent" |
36 | | - android:layout_height="wrap_content" |
37 | | - android:layout_marginLeft="@dimen/paystack_____view____margin" |
38 | | - android:layout_marginRight="@dimen/paystack_____view____margin" |
39 | | - android:padding="@dimen/paystack_____view____margin" |
40 | | - android:text="Continue" /> |
| 16 | + android:layout_height="match_parent" |
| 17 | + android:layout_weight="2" |
| 18 | + android:background="#292929" |
| 19 | + app:text_prompt="To confirm you're the owner of this card, please enter your card pin" |
| 20 | + app:prompt_textsize="15sp" |
| 21 | + app:button_numeric_textsize="17sp" |
| 22 | + app:button_alpha_textsize="8sp" |
| 23 | + app:button_drawable_size="24dp" |
| 24 | + app:pin_length="4" |
| 25 | + app:pin_indicator_stroke_width="1dp" |
| 26 | + app:text_color="@android:color/holo_blue_bright"/> |
41 | 27 |
|
42 | 28 |
|
43 | | -</LinearLayout> |
| 29 | +</FrameLayout> |
0 commit comments