[fenix] For https://github.com/mozilla-mobile/fenix/issues/4212: Control text not...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / layout_percentage_seek_bar.xml
blobe426718e10ec1f70668d254c1b4e188561652d0e
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 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="wrap_content"
10     android:baselineAligned="false"
11     android:paddingStart="@dimen/radio_button_preference_horizontal"
12     android:paddingTop="@dimen/preference_seek_bar_padding"
13     android:paddingEnd="@dimen/radio_button_preference_horizontal"
14     android:paddingBottom="@dimen/preference_seek_bar_padding">
16     <TextView
17         android:id="@android:id/title"
18         android:layout_width="match_parent"
19         android:layout_height="wrap_content"
20         android:textAppearance="?android:attr/textAppearanceListItem"
21         app:layout_constraintTop_toTopOf="parent"
22         tools:text="Font size" />
24     <TextView
25         android:id="@android:id/summary"
26         android:layout_width="match_parent"
27         android:layout_height="wrap_content"
28         android:paddingTop="6dp"
29         android:textAppearance="?android:attr/textAppearanceSmall"
30         android:textColor="?android:attr/textColorSecondary"
31         app:layout_constraintTop_toBottomOf="@android:id/title"
32         tools:layout_editor_absoluteX="16dp"
33         tools:text="Make text on websites larger or smaller" />
35     <SeekBar
36         android:id="@+id/seekbar"
37         android:layout_width="0dp"
38         android:layout_height="wrap_content"
39         android:paddingStart="0dp"
40         android:paddingEnd="60dp"
41         app:layout_constraintBottom_toBottomOf="@+id/seekbar_value"
42         app:layout_constraintEnd_toEndOf="parent"
43         app:layout_constraintStart_toStartOf="parent"
44         app:layout_constraintTop_toTopOf="@+id/seekbar_value" />
46     <TextView
47         android:id="@+id/seekbar_value"
48         android:layout_width="wrap_content"
49         android:layout_height="wrap_content"
50         android:layout_marginTop="30dp"
51         android:layout_marginBottom="30dp"
52         android:gravity="end|center_vertical"
53         android:paddingStart="16dp"
54         android:paddingEnd="0dp"
55         tools:text="200%"
56         android:textColor="?attr/primaryText"
57         android:textSize="16sp"
58         app:layout_constraintBottom_toTopOf="@+id/sampleText"
59         app:layout_constraintEnd_toEndOf="parent"
60         app:layout_constraintTop_toBottomOf="@android:id/summary" />
62     <View
63         android:layout_width="0dp"
64         android:layout_height="0dp"
65         android:background="@color/violet_05"
66         app:layout_constraintBottom_toBottomOf="@+id/sampleText"
67         app:layout_constraintEnd_toEndOf="@+id/sampleText"
68         app:layout_constraintStart_toStartOf="@+id/sampleText"
69         app:layout_constraintTop_toTopOf="@+id/sampleText" />
71     <TextView
72         android:id="@+id/sampleText"
73         android:layout_width="match_parent"
74         android:layout_height="match_parent"
75         android:layout_marginTop="33dp"
76         android:padding="16dp"
77         android:text="@string/accessibility_text_size_sample_text_1"
78         android:textColor="@color/text_scale_example_text_color"
79         android:textSize="16sp"
80         app:layout_constraintBottom_toBottomOf="parent"
81         app:layout_constraintEnd_toEndOf="parent"
82         app:layout_constraintStart_toStartOf="parent" />
83 </androidx.constraintlayout.widget.ConstraintLayout>