settings_https_only.xml (5311B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <androidx.constraintlayout.widget.ConstraintLayout 6 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:app="http://schemas.android.com/apk/res-auto" 8 xmlns:tools="http://schemas.android.com/tools" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content"> 11 12 <TextView 13 android:id="@+id/https_only_title" 14 android:layout_width="0dp" 15 android:layout_height="wrap_content" 16 android:layout_marginStart="16dp" 17 android:layout_marginTop="16dp" 18 android:layout_marginBottom="2dp" 19 android:clickable="false" 20 app:lineHeight="24.sp" 21 android:text="@string/preferences_https_only_title" 22 android:textAppearance="@style/ListItemTextStyle" 23 android:textSize="16sp" 24 app:layout_constraintBottom_toTopOf="@id/https_only_summary" 25 app:layout_constraintEnd_toStartOf="@id/https_only_switch" 26 app:layout_constraintStart_toStartOf="parent" 27 app:layout_constraintTop_toTopOf="parent" 28 tools:targetApi="p" /> 29 30 <TextView 31 android:id="@+id/https_only_summary" 32 android:layout_width="0dp" 33 android:layout_height="wrap_content" 34 app:lineHeight="16.sp" 35 android:textColor="?attr/textSecondary" 36 android:textColorLink="?attr/textSecondary" 37 android:textSize="12sp" 38 app:layout_constraintBottom_toTopOf="@id/https_only_modes" 39 app:layout_constraintEnd_toEndOf="@id/https_only_title" 40 app:layout_constraintStart_toStartOf="@id/https_only_title" 41 app:layout_constraintTop_toBottomOf="@id/https_only_title" 42 tools:targetApi="p" 43 tools:text="@string/preferences_https_only_summary" /> 44 45 <androidx.appcompat.widget.SwitchCompat 46 android:id="@+id/https_only_switch" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:minHeight="48dp" 50 android:paddingStart="18dp" 51 android:paddingEnd="18dp" 52 android:textColor="@color/state_list_text_color" 53 android:textOff="@string/studies_off" 54 android:textOn="@string/studies_on" 55 app:layout_constraintEnd_toEndOf="parent" 56 app:layout_constraintTop_toTopOf="@id/https_only_title" /> 57 58 <RadioGroup 59 android:id="@+id/https_only_modes" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_marginTop="10dp" 63 app:layout_constraintEnd_toEndOf="parent" 64 app:layout_constraintStart_toStartOf="parent" 65 app:layout_constraintTop_toBottomOf="@id/https_only_summary"> 66 67 <org.mozilla.fenix.settings.PreferenceBackedRadioButton 68 android:id="@+id/https_only_all_tabs" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:minHeight="48dp" 72 android:background="?android:attr/selectableItemBackground" 73 android:button="@null" 74 android:textColor="?attr/colorOnSurface" 75 android:drawablePadding="@dimen/radio_button_preference_drawable_padding" 76 android:paddingStart="@dimen/radio_button_preference_horizontal" 77 android:paddingTop="@dimen/radio_button_preference_vertical" 78 android:paddingEnd="@dimen/radio_button_preference_horizontal" 79 android:paddingBottom="@dimen/radio_button_preference_vertical" 80 android:text="@string/preferences_https_only_in_all_tabs" 81 android:textAppearance="?android:attr/textAppearanceListItem" 82 android:textSize="16sp" 83 app:drawableStartCompat="?android:attr/listChoiceIndicatorSingle" 84 app:preferenceKey="@string/pref_key_https_only_in_all_tabs" 85 app:preferenceKeyDefaultValue="true" /> 86 87 <org.mozilla.fenix.settings.PreferenceBackedRadioButton 88 android:id="@+id/https_only_private_tabs" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:minHeight="48dp" 92 android:textColor="?attr/colorOnSurface" 93 android:background="?android:attr/selectableItemBackground" 94 android:button="@null" 95 android:drawablePadding="@dimen/radio_button_preference_drawable_padding" 96 android:paddingStart="@dimen/radio_button_preference_horizontal" 97 android:paddingTop="@dimen/radio_button_preference_vertical" 98 android:paddingEnd="@dimen/radio_button_preference_horizontal" 99 android:paddingBottom="@dimen/radio_button_preference_vertical" 100 android:text="@string/preferences_https_only_in_private_tabs" 101 android:textAppearance="?android:attr/textAppearanceListItem" 102 android:textSize="16sp" 103 app:drawableStartCompat="?android:attr/listChoiceIndicatorSingle" 104 app:preferenceKey="@string/pref_key_https_only_in_private_tabs" 105 app:preferenceKeyDefaultValue="false" /> 106 </RadioGroup> 107 108 </androidx.constraintlayout.widget.ConstraintLayout>