|
1 |
| -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
2 |
| - xmlns:tools="http://schemas.android.com/tools" |
3 |
| - android:layout_width="match_parent" |
4 |
| - android:layout_height="match_parent" |
5 |
| - android:orientation="vertical" |
6 |
| - tools:context=".CardEditActivity"> |
7 |
| - |
8 |
| - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
9 |
| - xmlns:tools="http://schemas.android.com/tools" |
10 |
| - android:id="@+id/parent" |
11 |
| - android:layout_width="match_parent" |
12 |
| - android:layout_height="wrap_content" |
13 |
| - android:orientation="vertical" |
14 |
| - tools:context=".CardEditActivity"> |
15 |
| - |
16 |
| - <LinearLayout |
17 |
| - android:layout_width="match_parent" |
| 1 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:tools="http://schemas.android.com/tools" |
| 3 | + android:id="@+id/parent" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="wrap_content" |
| 6 | + android:orientation="vertical" |
| 7 | + tools:context=".CardEditActivity"> |
| 8 | + |
| 9 | + <LinearLayout |
| 10 | + android:layout_width="match_parent" |
| 11 | + android:layout_height="wrap_content" |
| 12 | + android:orientation="vertical"> |
| 13 | + |
| 14 | + <com.cooltechworks.creditcarddesign.CreditCardView |
| 15 | + android:id="@+id/credit_card_view" |
| 16 | + android:layout_width="wrap_content" |
18 | 17 | android:layout_height="wrap_content"
|
19 |
| - android:orientation="vertical"> |
20 |
| - |
21 |
| - <com.cooltechworks.creditcarddesign.CreditCardView |
22 |
| - android:id="@+id/credit_card_view" |
23 |
| - android:layout_width="wrap_content" |
24 |
| - android:layout_height="wrap_content" |
25 |
| - android:layout_gravity="center" |
26 |
| - |
27 |
| - /> |
28 |
| - |
29 |
| - <android.support.v4.view.ViewPager |
30 |
| - android:id="@+id/card_field_container_pager" |
31 |
| - android:layout_width="match_parent" |
32 |
| - android:layout_height="wrap_content" |
33 |
| - android:minHeight="120dp" |
34 |
| - android:orientation="horizontal" |
35 |
| - > |
| 18 | + android:layout_gravity="center" |
36 | 19 |
|
37 |
| - </android.support.v4.view.ViewPager> |
| 20 | + /> |
38 | 21 |
|
39 |
| - |
40 |
| - </LinearLayout> |
41 |
| - |
42 |
| - <LinearLayout |
| 22 | + <com.cooltechworks.creditcarddesign.views.HeightWrappingViewPager |
| 23 | + android:id="@+id/card_field_container_pager" |
43 | 24 | android:layout_width="match_parent"
|
44 | 25 | android:layout_height="wrap_content"
|
45 |
| - android:layout_gravity="bottom" |
46 |
| - android:layout_marginTop="@dimen/margin_small" |
47 |
| - android:orientation="horizontal"> |
48 |
| - |
49 |
| - <TextView |
50 |
| - android:id="@+id/previous" |
51 |
| - android:layout_width="0dp" |
52 |
| - android:layout_height="wrap_content" |
53 |
| - android:layout_weight="1" |
54 |
| - android:background="@color/green_continue" |
55 |
| - android:gravity="center" |
56 |
| - android:padding="@dimen/padding_normal" |
57 |
| - android:text="@string/previous" |
58 |
| - android:textColor="@android:color/white" |
59 |
| - android:textSize="@dimen/text_size_small" |
| 26 | + android:minHeight="120dp" |
| 27 | + android:orientation="horizontal" |
| 28 | + > |
60 | 29 |
|
61 |
| - /> |
| 30 | + </com.cooltechworks.creditcarddesign.views.HeightWrappingViewPager> |
62 | 31 |
|
63 |
| - <TextView |
64 |
| - android:id="@+id/next" |
65 |
| - android:layout_width="0dp" |
66 |
| - android:layout_height="wrap_content" |
67 |
| - android:layout_weight="1" |
68 |
| - android:background="@color/green_continue" |
69 |
| - android:gravity="center" |
70 |
| - android:padding="@dimen/padding_normal" |
71 |
| - android:text="@string/next" |
72 |
| - android:textColor="@android:color/white" |
73 |
| - android:textSize="@dimen/text_size_small" |
74 | 32 |
|
75 |
| - /> |
76 |
| - </LinearLayout> |
| 33 | + </LinearLayout> |
77 | 34 |
|
| 35 | + <LinearLayout |
| 36 | + android:layout_width="match_parent" |
| 37 | + android:layout_height="wrap_content" |
| 38 | + android:layout_gravity="bottom" |
| 39 | + android:layout_marginTop="@dimen/margin_small" |
| 40 | + android:orientation="horizontal"> |
78 | 41 |
|
| 42 | + <TextView |
| 43 | + android:id="@+id/previous" |
| 44 | + android:layout_width="0dp" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:layout_weight="1" |
| 47 | + android:background="@color/green_continue" |
| 48 | + android:gravity="center" |
| 49 | + android:padding="@dimen/padding_normal" |
| 50 | + android:text="@string/previous" |
| 51 | + android:textColor="@android:color/white" |
| 52 | + android:textSize="@dimen/text_size_small" |
| 53 | + |
| 54 | + /> |
| 55 | + |
| 56 | + <TextView |
| 57 | + android:id="@+id/next" |
| 58 | + android:layout_width="0dp" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:layout_weight="1" |
| 61 | + android:background="@color/green_continue" |
| 62 | + android:gravity="center" |
| 63 | + android:padding="@dimen/padding_normal" |
| 64 | + android:text="@string/next" |
| 65 | + android:textColor="@android:color/white" |
| 66 | + android:textSize="@dimen/text_size_small" |
| 67 | + |
| 68 | + /> |
79 | 69 | </LinearLayout>
|
80 | 70 |
|
81 | 71 |
|
82 |
| -</RelativeLayout> |
| 72 | +</LinearLayout> |
0 commit comments