settings_studies.xml (2648B)
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/. --> 4 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"> 11 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:textAppearance="@style/ListItemTextStyle" 20 android:textSize="16sp" 21 app:layout_constraintEnd_toStartOf="@id/studies_switch" 22 app:layout_constraintStart_toStartOf="parent" 23 app:layout_constraintTop_toTopOf="parent" 24 tools:text="On" /> 25 26 <TextView 27 android:id="@+id/studiesDescription" 28 android:layout_width="0dp" 29 android:layout_height="wrap_content" 30 android:text="@string/preference_experiments_summary_2" 31 android:textColor="?attr/textSecondary" 32 android:textColorLink="?textAccent" 33 app:layout_constraintEnd_toEndOf="@id/studiesTitle" 34 app:layout_constraintHorizontal_bias="0.5" 35 app:layout_constraintStart_toStartOf="@id/studiesTitle" 36 app:layout_constraintTop_toBottomOf="@id/studiesTitle" /> 37 38 <androidx.appcompat.widget.SwitchCompat 39 android:id="@+id/studies_switch" 40 style="@style/QuickSettingsText.Icon" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginEnd="16dp" 44 android:minHeight="48dp" 45 android:textOff="@string/studies_off" 46 android:textOn="@string/studies_on" 47 app:layout_constraintEnd_toEndOf="parent" 48 app:layout_constraintTop_toTopOf="parent" /> 49 50 <androidx.recyclerview.widget.RecyclerView 51 android:id="@+id/studies_list" 52 android:layout_width="match_parent" 53 android:layout_height="0dp" 54 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 55 app:layout_constraintBottom_toBottomOf="parent" 56 app:layout_constraintEnd_toEndOf="parent" 57 app:layout_constraintTop_toBottomOf="@id/studiesDescription" /> 58 59 </androidx.constraintlayout.widget.ConstraintLayout>