[fenix] For https://github.com/mozilla-mobile/fenix/issues/20764 add screen for optin...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / settings_studies.xml
blobb978849226c35057c367324eb1cdc303832ace17
1 <?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
2    - License, v. 2.0. If a copy of the MPL was not distributed with this
3    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:layout_width="match_parent"
9     android:layout_height="match_parent"
10     android:layout_marginTop="16dp">
12     <TextView
13         android:id="@+id/studiesTitle"
14         android:layout_width="0dp"
15         android:layout_height="wrap_content"
16         android:layout_marginStart="@dimen/top_bar_alignment_margin_start"
17         android:clickable="false"
18         android:focusable="false"
19         android:importantForAccessibility="no"
20         android:textAppearance="@style/ListItemTextStyle"
21         android:textSize="16sp"
22         app:layout_constraintEnd_toStartOf="@id/studies_switch"
23         app:layout_constraintStart_toStartOf="parent"
24         app:layout_constraintTop_toTopOf="parent"
25         tools:text="On" />
27     <TextView
28         android:id="@+id/studiesDescription"
29         android:layout_width="0dp"
30         android:layout_height="wrap_content"
31         android:importantForAccessibility="no"
32         android:text="@string/preference_experiments_summary_2"
33         android:textColor="?attr/secondaryText"
34         android:textColorLink="?aboutLink"
35         app:layout_constraintEnd_toEndOf="@id/studiesTitle"
36         app:layout_constraintHorizontal_bias="0.5"
37         app:layout_constraintStart_toStartOf="@id/studiesTitle"
38         app:layout_constraintTop_toBottomOf="@id/studiesTitle" />
40     <androidx.appcompat.widget.SwitchCompat
41         android:id="@+id/studies_switch"
42         style="@style/QuickSettingsText.Icon"
43         android:layout_width="wrap_content"
44         android:layout_height="wrap_content"
45         android:layout_marginEnd="16dp"
46         android:minHeight="48dp"
47         android:textOff="@string/studies_off"
48         android:textOn="@string/studies_on"
49         app:layout_constraintEnd_toEndOf="parent"
50         app:layout_constraintTop_toTopOf="parent" />
52     <androidx.recyclerview.widget.RecyclerView
53         android:id="@+id/studies_list"
54         android:layout_width="match_parent"
55         android:layout_height="0dp"
56         app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
57         app:layout_constraintBottom_toBottomOf="parent"
58         app:layout_constraintEnd_toEndOf="parent"
59         app:layout_constraintTop_toBottomOf="@id/studiesDescription" />
61 </androidx.constraintlayout.widget.ConstraintLayout>