activity_settings.xml
1    <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2        xmlns:app="http://schemas.android.com/apk/res-auto"
3        xmlns:tools="http://schemas.android.com/tools"
4        android:id="@+id/root_settings"
5        android:layout_width="match_parent"
6        android:layout_height="match_parent"
7        android:background="@color/colorPrimary"
8        tools:context="com.asimplesock.chatistics.SettingsActivity">
9    
10   
11       <TextView
12           android:id="@+id/textView104"
13           style="@style/Lheading"
14           android:layout_width="match_parent"
15           android:layout_height="wrap_content"
16           android:background="@color/light_pinkie"
17           android:paddingTop="16dp"
18           android:paddingBottom="16dp"
19           android:text="Settings"
20           android:textAlignment="center"
21           android:textColor="@color/white"
22           app:layout_constraintEnd_toEndOf="parent"
23           app:layout_constraintStart_toStartOf="parent"
24           app:layout_constraintTop_toTopOf="parent" />
25   
26       <TextView
27           android:id="@+id/textView105"
28           style="@style/Mheading"
29           android:layout_width="wrap_content"
30           android:layout_height="wrap_content"
31           android:layout_marginStart="24dp"
32           android:layout_marginTop="16dp"
33           android:text="Force Group Statistics"
34           android:textColor="@color/white"
35           app:layout_constraintStart_toStartOf="parent"
36           app:layout_constraintTop_toBottomOf="@+id/textView104" />
37   
38       <TextView
39           android:id="@+id/textView106"
40           android:layout_width="wrap_content"
41           android:layout_height="wrap_content"
42           android:text="Turn on to view Sample of Group"
43           android:textColor="@color/grey"
44           app:layout_constraintStart_toStartOf="@+id/textView105"
45           app:layout_constraintTop_toBottomOf="@+id/textView105" />
46   
47       <Switch
48           android:id="@+id/force_group_switch"
49           android:layout_width="wrap_content"
50           android:layout_height="wrap_content"
51           android:layout_marginEnd="16dp"
52           app:layout_constraintBottom_toBottomOf="@+id/textView106"
53           app:layout_constraintEnd_toEndOf="parent"
54           app:layout_constraintTop_toTopOf="@+id/textView105" />
55   
56       <TextView
57           android:id="@+id/textView108"
58           android:layout_width="match_parent"
59           android:layout_height="1dp"
60           android:layout_marginTop="16dp"
61           android:background="@color/grey"
62           app:layout_constraintEnd_toEndOf="parent"
63           app:layout_constraintStart_toStartOf="parent"
64           app:layout_constraintTop_toBottomOf="@+id/textView106" />
65   
66       <TextView
67           android:id="@+id/textView107"
68           style="@style/Mheading"
69           android:layout_width="wrap_content"
70           android:layout_height="wrap_content"
71           android:layout_marginTop="16dp"
72           android:text="Show in single screen."
73           android:textColor="@color/white"
74           app:layout_constraintStart_toStartOf="@+id/textView105"
75           app:layout_constraintTop_toBottomOf="@+id/textView108" />
76   
77       <TextView
78           android:id="@+id/textView109"
79           android:layout_width="wrap_content"
80           android:layout_height="wrap_content"
81           android:text="Turn off for the old version"
82           android:textColor="@color/grey"
83           app:layout_constraintStart_toStartOf="@+id/textView107"
84           app:layout_constraintTop_toBottomOf="@+id/textView107" />
85   
86       <Switch
87           android:id="@+id/single_switch"
88           android:layout_width="wrap_content"
89           android:layout_height="wrap_content"
90           android:layout_marginEnd="16dp"
91           android:enabled="true"
92           app:layout_constraintBottom_toBottomOf="@+id/textView109"
93           app:layout_constraintEnd_toEndOf="parent"
94           app:layout_constraintTop_toTopOf="@+id/textView107" />
95   
96       <TextView
97           android:id="@+id/textView110"
98           android:layout_width="match_parent"
99           android:layout_height="1dp"
100          android:layout_marginTop="16dp"
101          android:background="@color/grey"
102          app:layout_constraintEnd_toEndOf="parent"
103          app:layout_constraintHorizontal_bias="0.0"
104          app:layout_constraintStart_toStartOf="parent"
105          app:layout_constraintTop_toBottomOf="@+id/textView109" />
106  
107  
108      <LinearLayout
109          android:id="@+id/linearLayout6"
110          android:layout_width="fill_parent"
111          android:layout_height="wrap_content"
112          android:layout_marginTop="24dp"
113          android:orientation="horizontal"
114          app:layout_constraintEnd_toEndOf="parent"
115          app:layout_constraintStart_toStartOf="parent"
116          app:layout_constraintTop_toBottomOf="@+id/textView111">
117  
118          <com.apandroid.colorwheel.ColorWheel
119              android:id="@+id/colorWheelOne"
120              android:layout_width="0dp"
121              android:layout_height="wrap_content"
122              android:layout_weight="1"
123              android:padding="16dp" />
124  
125          <com.apandroid.colorwheel.ColorWheel
126              android:id="@+id/colorWheelTwo"
127              android:layout_width="0dp"
128              android:layout_height="wrap_content"
129              android:layout_weight="1"
130              android:padding="16dp" />
131      </LinearLayout>
132  
133      <TextView
134          android:id="@+id/textView111"
135          style="@style/Mheading"
136          android:layout_width="wrap_content"
137          android:layout_height="wrap_content"
138          android:layout_marginTop="8dp"
139          android:text="Choose colors"
140          android:textColor="@color/white"
141          app:layout_constraintStart_toStartOf="@+id/textView107"
142          app:layout_constraintTop_toBottomOf="@+id/textView110" />
143  
144      <TextView
145          android:id="@+id/textView130"
146          android:layout_width="wrap_content"
147          android:layout_height="wrap_content"
148          android:text="Looks best with light colors"
149          android:textColor="@color/grey"
150          app:layout_constraintStart_toStartOf="@+id/textView111"
151          app:layout_constraintTop_toBottomOf="@+id/textView111" />
152  
153      <TextView
154          android:id="@+id/textView112"
155          android:layout_width="wrap_content"
156          android:layout_height="wrap_content"
157          android:layout_marginTop="20dp"
158          android:text="Primary"
159          android:textColor="@color/grey"
160          app:layout_constraintEnd_toEndOf="parent"
161          app:layout_constraintHorizontal_bias="0.223"
162          app:layout_constraintStart_toStartOf="parent"
163          app:layout_constraintTop_toBottomOf="@+id/textView111" />
164  
165      <TextView
166          android:id="@+id/textView113"
167          android:layout_width="wrap_content"
168          android:layout_height="wrap_content"
169          android:text="Secondary"
170          android:textColor="@color/grey"
171          app:layout_constraintEnd_toEndOf="parent"
172          app:layout_constraintHorizontal_bias="0.82"
173          app:layout_constraintStart_toStartOf="parent"
174          app:layout_constraintTop_toTopOf="@+id/textView112" />
175  
176      <Button
177          android:id="@+id/button_apply"
178          android:layout_width="wrap_content"
179          android:layout_height="wrap_content"
180          android:text="Apply"
181          app:layout_constraintEnd_toEndOf="parent"
182          app:layout_constraintStart_toStartOf="parent"
183          app:layout_constraintTop_toBottomOf="@+id/gradient_seek_bar" />
184  
185  
186      <TextView
187          android:id="@+id/color_one"
188          android:layout_width="100dp"
189          android:layout_height="48dp"
190          app:layout_constraintBottom_toBottomOf="@+id/button_apply"
191          app:layout_constraintEnd_toStartOf="@+id/button_apply"
192          app:layout_constraintHorizontal_bias="0.719"
193          app:layout_constraintStart_toStartOf="parent" />
194  
195      <TextView
196          android:id="@+id/color_two"
197          android:layout_width="100dp"
198          android:layout_height="48dp"
199          app:layout_constraintBottom_toBottomOf="@+id/button_apply"
200          app:layout_constraintEnd_toEndOf="parent"
201          app:layout_constraintHorizontal_bias="0.292"
202          app:layout_constraintStart_toEndOf="@+id/button_apply" />
203  
204      <com.apandroid.colorwheel.gradientseekbar.GradientSeekBar
205          android:id="@+id/gradient_seek_bar"
206          android:layout_width="match_parent"
207          android:layout_height="wrap_content"
208          android:layout_marginStart="16dp"
209          android:layout_marginEnd="16dp"
210          app:asb_endColor="@color/black"
211          app:asb_offset="0.86"
212          app:asb_orientation="horizontal"
213          app:asb_startColor="@color/white"
214          app:layout_constraintEnd_toEndOf="parent"
215          app:layout_constraintHorizontal_bias="0.0"
216          app:layout_constraintStart_toStartOf="parent"
217          app:layout_constraintTop_toBottomOf="@+id/linearLayout6" />
218  
219      <ImageView
220          android:id="@+id/reset_colors"
221          android:layout_width="32dp"
222          android:layout_height="32dp"
223          android:src="@drawable/refresh"
224          app:layout_constraintBottom_toTopOf="@+id/linearLayout6"
225          app:layout_constraintEnd_toEndOf="@+id/single_switch"
226          app:layout_constraintStart_toStartOf="@+id/single_switch"
227          app:layout_constraintTop_toBottomOf="@+id/textView110" />
228  
229      <TextView
230          android:id="@+id/textView114"
231          android:layout_width="0dp"
232          android:layout_height="1dp"
233          android:layout_marginTop="8dp"
234          android:background="@color/grey"
235          app:layout_constraintEnd_toEndOf="parent"
236          app:layout_constraintStart_toStartOf="parent"
237          app:layout_constraintTop_toBottomOf="@+id/button_apply" />
238  
239  </androidx.constraintlayout.widget.ConstraintLayout>