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