|
18 | 18 | android:orientation="vertical"
|
19 | 19 | android:padding="@dimen/config_activity_padding">
|
20 | 20 |
|
21 |
| - <LinearLayout |
22 |
| - android:id="@+id/select_instrument" |
| 21 | + <android.support.v7.widget.CardView |
23 | 22 | android:layout_width="match_parent"
|
24 |
| - android:layout_height="@dimen/height_zero" |
25 |
| - android:layout_weight="@dimen/weight_one" |
26 |
| - android:orientation="horizontal"> |
27 |
| - |
28 |
| - <TextView |
29 |
| - android:id="@+id/select_instrument_title" |
30 |
| - style="@style/Base.TextAppearance.AppCompat.Title" |
31 |
| - android:layout_width="@dimen/width_zero" |
32 |
| - android:layout_weight="@dimen/weight_one" |
33 |
| - android:textSize="@dimen/text_size_of_label" |
34 |
| - android:layout_height="wrap_content" |
35 |
| - android:layout_gravity="center" |
36 |
| - android:text="@string/select_instrument_title" /> |
37 |
| - |
38 |
| - <android.support.v7.widget.AppCompatSpinner |
39 |
| - android:id="@+id/select_instrument_spinner" |
40 |
| - android:layout_width="@dimen/width_zero" |
41 |
| - android:layout_weight="@dimen/weight_two" |
| 23 | + android:layout_height="wrap_content" |
| 24 | + android:layout_margin="@dimen/card_margin" |
| 25 | + android:padding="@dimen/card_margin" |
| 26 | + app:cardCornerRadius="@dimen/accel_card_radius" |
| 27 | + app:cardElevation="@dimen/card_elevation"> |
| 28 | + |
| 29 | + <LinearLayout |
| 30 | + android:id="@+id/select_instrument" |
| 31 | + android:orientation="horizontal" |
| 32 | + android:layout_width="match_parent" |
42 | 33 | android:layout_height="wrap_content"
|
43 |
| - android:layout_gravity="center" |
44 |
| - android:textAlignment="center" /> |
45 |
| - </LinearLayout> |
46 |
| - |
47 |
| - <LinearLayout |
| 34 | + android:paddingTop="@dimen/create_config_padding" |
| 35 | + android:paddingBottom="@dimen/create_config_padding" |
| 36 | + android:layout_marginStart="@dimen/create_config_margin1"> |
| 37 | + |
| 38 | + <TextView |
| 39 | + android:id="@+id/select_instrument_title" |
| 40 | + style="@style/Base.TextAppearance.AppCompat.Title" |
| 41 | + android:layout_width="@dimen/width_zero" |
| 42 | + android:layout_weight="@dimen/weight_one" |
| 43 | + android:textSize="@dimen/text_size_of_label" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:layout_gravity="center" |
| 46 | + android:text="@string/select_instrument_title" /> |
| 47 | + |
| 48 | + <android.support.v7.widget.AppCompatSpinner |
| 49 | + android:id="@+id/select_instrument_spinner" |
| 50 | + android:layout_width="@dimen/width_zero" |
| 51 | + android:layout_weight="@dimen/weight_two" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_gravity="center" |
| 54 | + android:textAlignment="center" /> |
| 55 | + </LinearLayout> |
| 56 | + </android.support.v7.widget.CardView> |
| 57 | + |
| 58 | + <android.support.v7.widget.CardView |
48 | 59 | android:layout_width="match_parent"
|
49 |
| - android:layout_height="@dimen/height_zero" |
50 |
| - android:layout_weight="@dimen/weight_one" |
| 60 | + android:layout_height="wrap_content" |
| 61 | + android:layout_margin="@dimen/card_margin" |
51 | 62 | android:layout_marginTop="@dimen/create_config_margin1"
|
52 |
| - android:orientation="horizontal"> |
| 63 | + app:cardCornerRadius="@dimen/accel_card_radius" |
| 64 | + app:cardElevation="@dimen/card_elevation"> |
53 | 65 |
|
54 |
| - <TextView |
55 |
| - android:id="@+id/time_interval_title" |
56 |
| - style="@style/Base.TextAppearance.AppCompat.Title" |
57 |
| - android:layout_width="wrap_content" |
58 |
| - android:textSize="@dimen/text_size_of_label" |
| 66 | + <LinearLayout |
| 67 | + android:layout_width="match_parent" |
59 | 68 | android:layout_height="wrap_content"
|
60 |
| - android:layout_gravity="center" |
61 |
| - android:text="@string/time_interval_title" /> |
62 |
| - |
63 |
| - <EditText |
64 |
| - android:id="@+id/interval_edit_text" |
65 |
| - android:layout_width="@dimen/width_zero" |
66 |
| - android:layout_weight="@dimen/weight_three" |
67 |
| - android:layout_height="wrap_content" |
68 |
| - android:hint="@string/time_interval_hint" |
69 |
| - android:imeOptions="actionDone" |
70 |
| - android:inputType="number" |
71 |
| - android:textAlignment="center" |
72 |
| - android:layout_gravity="center"/> |
73 |
| - |
74 |
| - <android.support.v7.widget.AppCompatSpinner |
75 |
| - android:id="@+id/interval_unit_spinner" |
76 |
| - android:layout_width="@dimen/width_zero" |
77 |
| - android:layout_weight="@dimen/weight_one" |
78 |
| - android:layout_height="wrap_content" |
79 |
| - android:layout_gravity="center"/> |
80 |
| - </LinearLayout> |
| 69 | + android:orientation="horizontal" |
| 70 | + android:layout_marginStart="@dimen/create_config_margin1"> |
| 71 | + |
| 72 | + <TextView |
| 73 | + android:id="@+id/time_interval_title" |
| 74 | + style="@style/Base.TextAppearance.AppCompat.Title" |
| 75 | + android:layout_width="wrap_content" |
| 76 | + android:textSize="@dimen/text_size_of_label" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + android:layout_gravity="center" |
| 79 | + android:text="@string/time_interval_title" /> |
| 80 | + |
| 81 | + <EditText |
| 82 | + android:id="@+id/interval_edit_text" |
| 83 | + android:layout_width="@dimen/width_zero" |
| 84 | + android:layout_weight="@dimen/weight_three" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + android:hint="@string/time_interval_hint" |
| 87 | + android:imeOptions="actionDone" |
| 88 | + android:inputType="number" |
| 89 | + android:textAlignment="center" |
| 90 | + android:layout_gravity="center" /> |
| 91 | + |
| 92 | + <android.support.v7.widget.AppCompatSpinner |
| 93 | + android:id="@+id/interval_unit_spinner" |
| 94 | + android:layout_width="@dimen/width_zero" |
| 95 | + android:layout_weight="@dimen/weight_one" |
| 96 | + android:layout_height="wrap_content" |
| 97 | + android:layout_gravity="center" /> |
| 98 | + </LinearLayout> |
| 99 | + </android.support.v7.widget.CardView> |
81 | 100 |
|
82 | 101 | <TextView
|
83 | 102 | android:id="@+id/select_params_title"
|
|
93 | 112 | <android.support.v7.widget.RecyclerView
|
94 | 113 | android:id="@+id/params_list_container"
|
95 | 114 | android:layout_width="match_parent"
|
96 |
| - android:layout_height="@dimen/height_zero" |
97 |
| - android:layout_weight="@dimen/weight_four" |
| 115 | + android:layout_height="wrap_content" |
98 | 116 | android:layout_marginTop="@dimen/create_config_margin1" />
|
99 | 117 |
|
100 | 118 | <Button
|
|
0 commit comments