|
12 | 12 | android:layout_height="wrap_content" |
13 | 13 | android:layout_below="@+id/top_app_bar_layout"> |
14 | 14 |
|
15 | | - <RelativeLayout |
| 15 | + <LinearLayout |
16 | 16 | android:layout_width="match_parent" |
17 | 17 | android:layout_height="wrap_content" |
18 | | - android:padding="@dimen/home_fragment_padding"> |
| 18 | + android:orientation="vertical" |
| 19 | + android:padding="@dimen/config_activity_padding"> |
19 | 20 |
|
20 | | - <TextView |
21 | | - android:id="@+id/select_instrument_title" |
22 | | - style="@style/Base.TextAppearance.AppCompat.Title" |
23 | | - android:layout_width="wrap_content" |
| 21 | + <LinearLayout |
| 22 | + android:id="@+id/select_instrument" |
| 23 | + android:layout_width="match_parent" |
24 | 24 | android:layout_height="wrap_content" |
25 | | - android:layout_marginTop="@dimen/create_config_margin4" |
26 | | - android:text="@string/select_instrument_title" /> |
| 25 | + android:orientation="horizontal"> |
27 | 26 |
|
28 | | - <android.support.v7.widget.AppCompatSpinner |
29 | | - android:id="@+id/select_instrument_spinner" |
30 | | - android:layout_width="wrap_content" |
31 | | - android:layout_height="wrap_content" |
32 | | - android:layout_toEndOf="@id/select_instrument_title" /> |
| 27 | + <TextView |
| 28 | + android:id="@+id/select_instrument_title" |
| 29 | + style="@style/Base.TextAppearance.AppCompat.Title" |
| 30 | + android:layout_width="wrap_content" |
| 31 | + android:layout_height="wrap_content" |
| 32 | + android:text="@string/select_instrument_title" /> |
33 | 33 |
|
34 | | - <TextView |
35 | | - android:id="@+id/time_interval_title" |
36 | | - style="@style/Base.TextAppearance.AppCompat.Title" |
37 | | - android:layout_width="wrap_content" |
38 | | - android:layout_height="wrap_content" |
39 | | - android:layout_below="@+id/select_instrument_title" |
40 | | - android:layout_marginTop="@dimen/create_config_margin3" |
41 | | - android:text="@string/time_interval_title" /> |
| 34 | + <android.support.v7.widget.AppCompatSpinner |
| 35 | + android:id="@+id/select_instrument_spinner" |
| 36 | + android:layout_width="wrap_content" |
| 37 | + android:layout_height="wrap_content" /> |
42 | 38 |
|
43 | | - <EditText |
44 | | - android:id="@+id/interval_edit_text" |
45 | | - android:layout_width="wrap_content" |
46 | | - android:layout_height="wrap_content" |
47 | | - android:layout_below="@id/select_instrument_title" |
48 | | - android:layout_marginStart="@dimen/margin_btn" |
49 | | - android:layout_marginTop="@dimen/create_config_margin1" |
50 | | - android:layout_toEndOf="@id/time_interval_title" |
51 | | - android:hint="@string/time_interval_hint" |
52 | | - android:inputType="number" /> |
| 39 | + </LinearLayout> |
53 | 40 |
|
54 | | - <android.support.v7.widget.AppCompatSpinner |
55 | | - android:id="@+id/interval_unit_spinner" |
56 | | - android:layout_width="wrap_content" |
| 41 | + <LinearLayout |
| 42 | + android:layout_width="match_parent" |
57 | 43 | android:layout_height="wrap_content" |
58 | | - android:layout_below="@+id/select_instrument_title" |
59 | | - android:layout_marginStart="@dimen/margin_btn" |
60 | 44 | android:layout_marginTop="@dimen/create_config_margin1" |
61 | | - android:layout_toEndOf="@+id/interval_edit_text" /> |
| 45 | + android:orientation="horizontal"> |
| 46 | + |
| 47 | + <TextView |
| 48 | + android:id="@+id/time_interval_title" |
| 49 | + style="@style/Base.TextAppearance.AppCompat.Title" |
| 50 | + android:layout_width="wrap_content" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:text="@string/time_interval_title" /> |
| 53 | + |
| 54 | + <EditText |
| 55 | + android:id="@+id/interval_edit_text" |
| 56 | + android:layout_width="wrap_content" |
| 57 | + android:layout_height="wrap_content" |
| 58 | + android:hint="@string/time_interval_hint" |
| 59 | + android:imeOptions="actionDone" |
| 60 | + android:inputType="number" |
| 61 | + android:textAlignment="center" /> |
| 62 | + |
| 63 | + <android.support.v7.widget.AppCompatSpinner |
| 64 | + android:id="@+id/interval_unit_spinner" |
| 65 | + android:layout_width="wrap_content" |
| 66 | + android:layout_height="wrap_content" /> |
| 67 | + </LinearLayout> |
62 | 68 |
|
63 | 69 | <TextView |
64 | 70 | android:id="@+id/select_params_title" |
65 | 71 | style="@style/Base.TextAppearance.AppCompat.Title" |
66 | 72 | android:layout_width="wrap_content" |
67 | 73 | android:layout_height="wrap_content" |
68 | | - android:layout_below="@id/time_interval_title" |
69 | | - android:layout_centerHorizontal="true" |
| 74 | + android:layout_gravity="center" |
70 | 75 | android:layout_marginTop="@dimen/create_config_margin2" |
71 | 76 | android:text="@string/select_params_title" /> |
72 | 77 |
|
73 | | - <LinearLayout |
| 78 | + <android.support.v7.widget.RecyclerView |
74 | 79 | android:id="@+id/params_list_container" |
75 | 80 | android:layout_width="match_parent" |
76 | | - android:layout_height="wrap_content" |
77 | | - android:layout_below="@+id/select_params_title" |
78 | | - android:orientation="vertical"> |
79 | | - </LinearLayout> |
| 81 | + android:layout_height="@dimen/create_config_recycler_view" |
| 82 | + android:layout_marginTop="@dimen/create_config_margin1" /> |
80 | 83 |
|
81 | 84 | <Button |
82 | 85 | android:id="@+id/create_config_btn" |
83 | 86 | android:layout_width="wrap_content" |
84 | 87 | android:layout_height="wrap_content" |
85 | | - android:layout_below="@+id/params_list_container" |
86 | | - android:layout_centerHorizontal="true" |
| 88 | + android:layout_gravity="center" |
| 89 | + android:layout_marginTop="@dimen/create_config_margin2" |
87 | 90 | android:background="@drawable/btn_back_rounded" |
88 | 91 | android:padding="@dimen/margin_btn" |
89 | | - android:layout_marginTop="@dimen/create_config_margin2" |
90 | 92 | android:text="@string/create_config_btn_text" |
91 | 93 | android:textColor="@color/white" /> |
92 | | - </RelativeLayout> |
| 94 | + </LinearLayout> |
93 | 95 |
|
94 | 96 | </ScrollView> |
95 | 97 |
|
|
0 commit comments