|
14 | 14 | ~ See the License for the specific language governing permissions and |
15 | 15 | ~ limitations under the License. |
16 | 16 | --> |
17 | | -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
18 | 18 | android:layout_width="match_parent" |
19 | | - android:layout_height="match_parent" |
| 19 | + android:layout_height="match_parent"> |
| 20 | + |
| 21 | + <LinearLayout |
| 22 | + android:layout_width="match_parent" |
| 23 | + android:layout_height="wrap_content" |
20 | 24 | android:clipChildren="false" |
21 | 25 | android:clipToPadding="false" |
22 | 26 | android:orientation="vertical" |
23 | 27 | android:padding="16dp" |
24 | 28 | android:showDividers="middle" |
25 | 29 | android:divider="@drawable/layout_divider"> |
26 | | - <TextView |
27 | | - android:layout_width="wrap_content" |
28 | | - android:layout_height="wrap_content" |
29 | | - android:text="@string/cat_progress_indicator_linear" /> |
30 | | - <com.google.android.material.progressindicator.LinearProgressIndicator |
31 | | - android:id="@+id/linear_indicator" |
32 | | - android:layout_width="match_parent" |
33 | | - android:layout_height="wrap_content" |
34 | | - android:indeterminate="true"/> |
35 | 30 |
|
36 | | - <TextView |
37 | | - android:layout_width="wrap_content" |
38 | | - android:layout_height="wrap_content" |
39 | | - android:text="@string/cat_progress_indicator_circular" /> |
40 | | - <com.google.android.material.progressindicator.CircularProgressIndicator |
41 | | - android:id="@+id/circular_indicator" |
42 | | - android:layout_width="wrap_content" |
43 | | - android:layout_height="wrap_content" |
44 | | - android:layout_gravity="center" |
45 | | - android:indeterminate="true"/> |
| 31 | + <TextView |
| 32 | + android:layout_width="wrap_content" |
| 33 | + android:layout_height="wrap_content" |
| 34 | + android:text="@string/cat_progress_indicator_linear" /> |
| 35 | + <com.google.android.material.progressindicator.LinearProgressIndicator |
| 36 | + android:id="@+id/linear_indicator" |
| 37 | + android:layout_width="match_parent" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + android:progress="50"/> |
46 | 40 |
|
47 | | - <com.google.android.material.materialswitch.MaterialSwitch |
48 | | - android:id="@+id/determinate_mode_switch" |
49 | | - android:layout_width="match_parent" |
50 | | - android:layout_height="wrap_content" |
51 | | - android:text="@string/cat_progress_indicator_set_to_determinate_mode"/> |
52 | | - <TextView |
53 | | - android:layout_width="wrap_content" |
54 | | - android:layout_height="wrap_content" |
55 | | - android:text="@string/cat_progress_indicator_determinate_progress"/> |
56 | | - <com.google.android.material.slider.Slider |
57 | | - android:id="@+id/progress_slider" |
58 | | - android:layout_width="match_parent" |
59 | | - android:layout_height="wrap_content" |
60 | | - android:valueFrom="0" |
61 | | - android:valueTo="100" |
62 | | - android:stepSize="1"/> |
| 41 | + <TextView |
| 42 | + android:layout_width="wrap_content" |
| 43 | + android:layout_height="wrap_content" |
| 44 | + android:text="@string/cat_progress_indicator_circular" /> |
| 45 | + <com.google.android.material.progressindicator.CircularProgressIndicator |
| 46 | + android:id="@+id/circular_indicator" |
| 47 | + android:layout_width="wrap_content" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:layout_gravity="center" |
| 50 | + android:progress="50"/> |
63 | 51 |
|
64 | | - <TextView |
| 52 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 53 | + android:id="@+id/determinate_mode_switch" |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:checked="true" |
| 57 | + android:text="@string/cat_progress_indicator_set_to_determinate_mode"/> |
| 58 | + <TextView |
| 59 | + android:layout_width="wrap_content" |
| 60 | + android:layout_height="wrap_content" |
| 61 | + android:text="@string/cat_progress_indicator_determinate_progress"/> |
| 62 | + <com.google.android.material.slider.Slider |
| 63 | + android:id="@+id/progress_slider" |
| 64 | + android:layout_width="match_parent" |
| 65 | + android:layout_height="wrap_content" |
| 66 | + android:value="50" |
| 67 | + android:valueFrom="0" |
| 68 | + android:valueTo="100" |
| 69 | + android:stepSize="1"/> |
| 70 | + |
| 71 | + <TextView |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:text="@string/cat_progress_indicator_track_thickness"/> |
| 75 | + <com.google.android.material.slider.Slider |
| 76 | + android:id="@+id/thicknessSlider" |
| 77 | + android:layout_width="match_parent" |
| 78 | + android:layout_height="wrap_content" |
| 79 | + android:value="4" |
| 80 | + android:valueFrom="1" |
| 81 | + android:valueTo="15" |
| 82 | + android:stepSize="1"/> |
| 83 | + <TextView |
| 84 | + android:layout_width="wrap_content" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + android:text="@string/cat_progress_indicator_corner_size"/> |
| 87 | + <com.google.android.material.slider.Slider |
| 88 | + android:id="@+id/cornerSlider" |
| 89 | + android:layout_width="match_parent" |
| 90 | + android:layout_height="wrap_content" |
| 91 | + android:value="2" |
| 92 | + android:valueFrom="0" |
| 93 | + android:valueTo="5" |
| 94 | + android:stepSize="1"/> |
| 95 | + <TextView |
65 | 96 | android:layout_width="wrap_content" |
66 | 97 | android:layout_height="wrap_content" |
67 | | - android:text="@string/cat_progress_indicator_track_thickness"/> |
68 | | - <com.google.android.material.slider.Slider |
69 | | - android:id="@+id/thicknessSlider" |
| 98 | + android:text="@string/cat_progress_indicator_gap_size"/> |
| 99 | + <com.google.android.material.slider.Slider |
| 100 | + android:id="@+id/gapSlider" |
70 | 101 | android:layout_width="match_parent" |
71 | 102 | android:layout_height="wrap_content" |
72 | | - android:valueFrom="1" |
73 | | - android:valueTo="15" |
| 103 | + android:value="4" |
| 104 | + android:valueFrom="0" |
| 105 | + android:valueTo="10" |
74 | 106 | android:stepSize="1"/> |
75 | | - <TextView |
| 107 | + <TextView |
76 | 108 | android:layout_width="wrap_content" |
77 | 109 | android:layout_height="wrap_content" |
78 | | - android:text="@string/cat_progress_indicator_corner_size"/> |
79 | | - <com.google.android.material.slider.Slider |
80 | | - android:id="@+id/cornerSlider" |
| 110 | + android:text="@string/cat_progress_indicator_stop_size"/> |
| 111 | + <com.google.android.material.slider.Slider |
| 112 | + android:id="@+id/stopSlider" |
81 | 113 | android:layout_width="match_parent" |
82 | 114 | android:layout_height="wrap_content" |
| 115 | + android:value="4" |
83 | 116 | android:valueFrom="0" |
84 | | - android:valueTo="5" |
| 117 | + android:valueTo="10" |
85 | 118 | android:stepSize="1"/> |
86 | | - <com.google.android.material.materialswitch.MaterialSwitch |
87 | | - android:id="@+id/reverseSwitch" |
88 | | - android:layout_width="match_parent" |
89 | | - android:layout_height="wrap_content" |
90 | | - android:text="@string/cat_progress_indicator_reverse_direction"/> |
91 | | - |
92 | | - <TextView |
93 | | - android:layout_width="wrap_content" |
94 | | - android:layout_height="wrap_content" |
95 | | - android:text="@string/cat_progress_indicator_circular_indicator_size"/> |
96 | | - <com.google.android.material.slider.Slider |
97 | | - android:id="@+id/circularSizeSlider" |
98 | | - android:layout_width="match_parent" |
99 | | - android:layout_height="wrap_content" |
100 | | - android:valueFrom="20" |
101 | | - android:valueTo="200" |
102 | | - android:stepSize="5"/> |
103 | | -</LinearLayout> |
| 119 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 120 | + android:id="@+id/reverseSwitch" |
| 121 | + android:layout_width="match_parent" |
| 122 | + android:layout_height="wrap_content" |
| 123 | + android:text="@string/cat_progress_indicator_reverse_direction"/> |
104 | 124 |
|
| 125 | + <TextView |
| 126 | + android:layout_width="wrap_content" |
| 127 | + android:layout_height="wrap_content" |
| 128 | + android:text="@string/cat_progress_indicator_circular_indicator_size"/> |
| 129 | + <com.google.android.material.slider.Slider |
| 130 | + android:id="@+id/circularSizeSlider" |
| 131 | + android:layout_width="match_parent" |
| 132 | + android:layout_height="wrap_content" |
| 133 | + android:value="40" |
| 134 | + android:valueFrom="20" |
| 135 | + android:valueTo="200" |
| 136 | + android:stepSize="5"/> |
| 137 | + </LinearLayout> |
| 138 | +</ScrollView> |
0 commit comments