|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<LinearLayout |
| 2 | +<ScrollView |
3 | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
4 | | - android:id="@+id/main_holder" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + android:id="@+id/main_scrollview" |
5 | 6 | android:layout_width="match_parent" |
6 | 7 | android:layout_height="match_parent" |
7 | | - android:gravity="center" |
8 | | - android:orientation="vertical" |
9 | | - android:padding="@dimen/activity_margin"> |
| 8 | + android:fillViewport="true"> |
10 | 9 |
|
11 | | - <ImageView |
12 | | - android:id="@+id/toggle_btn" |
13 | | - android:layout_width="@dimen/main_button_size" |
14 | | - android:layout_height="@dimen/main_button_size" |
15 | | - android:layout_marginBottom="@dimen/activity_margin" |
16 | | - android:background="@drawable/circles_big"/> |
| 10 | + <android.support.constraint.ConstraintLayout |
| 11 | + android:id="@+id/main_holder" |
| 12 | + android:layout_width="match_parent" |
| 13 | + android:layout_height="wrap_content"> |
17 | 14 |
|
18 | | - <ImageView |
19 | | - android:id="@+id/bright_display_btn" |
20 | | - android:layout_width="wrap_content" |
21 | | - android:layout_height="wrap_content" |
22 | | - android:layout_marginBottom="@dimen/activity_margin" |
23 | | - android:layout_marginTop="@dimen/buttons_margin" |
24 | | - android:background="@drawable/ic_bright_display" |
25 | | - android:padding="@dimen/activity_margin"/> |
| 15 | + <ImageView |
| 16 | + android:id="@+id/toggle_btn" |
| 17 | + android:layout_width="@dimen/main_button_size" |
| 18 | + android:layout_height="@dimen/main_button_size" |
| 19 | + android:layout_marginBottom="@dimen/activity_margin" |
| 20 | + android:layout_marginTop="@dimen/activity_margin" |
| 21 | + android:background="@drawable/circles_big" |
| 22 | + app:layout_constraintBottom_toTopOf="@+id/bright_display_btn" |
| 23 | + app:layout_constraintEnd_toEndOf="parent" |
| 24 | + app:layout_constraintHorizontal_bias="0.5" |
| 25 | + app:layout_constraintStart_toStartOf="parent" |
| 26 | + app:layout_constraintTop_toTopOf="parent"/> |
26 | 27 |
|
27 | | - <ImageView |
28 | | - android:id="@+id/stroboscope_btn" |
29 | | - android:layout_width="wrap_content" |
30 | | - android:layout_height="wrap_content" |
31 | | - android:layout_marginTop="@dimen/buttons_margin" |
32 | | - android:background="@drawable/ic_stroboscope" |
33 | | - android:padding="@dimen/activity_margin"/> |
| 28 | + <ImageView |
| 29 | + android:id="@+id/bright_display_btn" |
| 30 | + android:layout_width="wrap_content" |
| 31 | + android:layout_height="wrap_content" |
| 32 | + android:layout_marginBottom="@dimen/activity_margin" |
| 33 | + android:layout_marginTop="@dimen/buttons_margin" |
| 34 | + android:background="@drawable/ic_bright_display" |
| 35 | + android:padding="@dimen/activity_margin" |
| 36 | + app:layout_constraintBottom_toTopOf="@+id/stroboscope_btn" |
| 37 | + app:layout_constraintEnd_toEndOf="parent" |
| 38 | + app:layout_constraintHorizontal_bias="0.5" |
| 39 | + app:layout_constraintStart_toStartOf="parent" |
| 40 | + app:layout_constraintTop_toBottomOf="@+id/toggle_btn"/> |
34 | 41 |
|
35 | | - <com.simplemobiletools.commons.views.MySeekBar |
36 | | - android:id="@+id/stroboscope_bar" |
37 | | - android:layout_width="@dimen/seekbar_width" |
38 | | - android:layout_height="wrap_content" |
39 | | - android:layout_margin="@dimen/activity_margin" |
40 | | - android:paddingBottom="@dimen/medium_margin" |
41 | | - android:paddingTop="@dimen/medium_margin" |
42 | | - android:visibility="invisible"/> |
| 42 | + <ImageView |
| 43 | + android:id="@+id/stroboscope_btn" |
| 44 | + android:layout_width="wrap_content" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:layout_marginTop="@dimen/buttons_margin" |
| 47 | + android:background="@drawable/ic_stroboscope" |
| 48 | + android:padding="@dimen/activity_margin" |
| 49 | + app:layout_constraintBottom_toTopOf="@+id/stroboscope_bar" |
| 50 | + app:layout_constraintEnd_toEndOf="parent" |
| 51 | + app:layout_constraintHorizontal_bias="0.5" |
| 52 | + app:layout_constraintStart_toStartOf="parent" |
| 53 | + app:layout_constraintTop_toBottomOf="@+id/bright_display_btn"/> |
43 | 54 |
|
44 | | -</LinearLayout> |
| 55 | + <com.simplemobiletools.commons.views.MySeekBar |
| 56 | + android:id="@+id/stroboscope_bar" |
| 57 | + android:layout_width="@dimen/seekbar_width" |
| 58 | + android:layout_height="wrap_content" |
| 59 | + android:layout_margin="@dimen/activity_margin" |
| 60 | + android:paddingBottom="@dimen/medium_margin" |
| 61 | + android:paddingTop="@dimen/medium_margin" |
| 62 | + android:visibility="invisible" |
| 63 | + app:layout_constraintBottom_toBottomOf="parent" |
| 64 | + app:layout_constraintEnd_toEndOf="parent" |
| 65 | + app:layout_constraintHorizontal_bias="0.5" |
| 66 | + app:layout_constraintStart_toStartOf="parent" |
| 67 | + app:layout_constraintTop_toBottomOf="@+id/stroboscope_btn"/> |
| 68 | + |
| 69 | + </android.support.constraint.ConstraintLayout> |
| 70 | +</ScrollView> |
0 commit comments