diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /mobile/android/fenix/app/src/main/res/layout/layout_percentage_seek_bar.xml | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mobile/android/fenix/app/src/main/res/layout/layout_percentage_seek_bar.xml')
-rw-r--r-- | mobile/android/fenix/app/src/main/res/layout/layout_percentage_seek_bar.xml | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/mobile/android/fenix/app/src/main/res/layout/layout_percentage_seek_bar.xml b/mobile/android/fenix/app/src/main/res/layout/layout_percentage_seek_bar.xml new file mode 100644 index 0000000000..79b6d5c44d --- /dev/null +++ b/mobile/android/fenix/app/src/main/res/layout/layout_percentage_seek_bar.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:baselineAligned="false" + android:clipChildren="false" + android:clipToPadding="false" + android:paddingTop="@dimen/preference_seek_bar_padding" + android:paddingBottom="@dimen/preference_seek_bar_padding"> + + <TextView + android:id="@android:id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="@dimen/top_bar_alignment_margin_start" + android:paddingEnd="@dimen/radio_button_preference_horizontal" + android:textAppearance="?android:attr/textAppearanceListItem" + android:textAlignment="viewStart" + app:layout_constraintTop_toTopOf="parent" + tools:text="Font size" /> + + <TextView + android:id="@android:id/summary" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="@dimen/top_bar_alignment_margin_start" + android:paddingEnd="@dimen/radio_button_preference_horizontal" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textAlignment="viewStart" + android:textColor="?android:attr/textColorSecondary" + app:layout_constraintTop_toBottomOf="@android:id/title" + tools:text="Make text on websites larger or smaller" /> + + <SeekBar + android:id="@+id/seekbar" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:paddingStart="@dimen/top_bar_alignment_margin_start" + android:paddingEnd="80dp" + app:layout_constraintBottom_toBottomOf="@+id/seekbar_value" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/seekbar_value" /> + + <TextView + android:id="@+id/seekbar_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="30dp" + android:layout_marginBottom="30dp" + android:gravity="end|center_vertical" + android:paddingStart="16dp" + android:paddingEnd="@dimen/radio_button_preference_horizontal" + android:textColor="?attr/textPrimary" + android:textSize="16sp" + app:layout_constraintBottom_toTopOf="@+id/sampleText" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@android:id/summary" + tools:text="200%" /> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:background="@color/photonViolet05" + app:layout_constraintBottom_toBottomOf="@+id/sampleText" + app:layout_constraintEnd_toEndOf="@+id/sampleText" + app:layout_constraintStart_toStartOf="@+id/sampleText" + app:layout_constraintTop_toTopOf="@+id/sampleText" /> + + <TextView + android:id="@+id/sampleText" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="33dp" + android:layout_marginStart="@dimen/top_bar_alignment_margin_start" + android:layout_marginEnd="@dimen/radio_button_preference_horizontal" + android:padding="16dp" + android:textAlignment="viewStart" + android:text="@string/accessibility_text_size_sample_text_1" + android:textColor="@color/text_scale_example_text_color" + android:textSize="16sp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" /> +</androidx.constraintlayout.widget.ConstraintLayout> |