• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2022 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17
18<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:paddingVertical="@dimen/settingslib_illustration_padding"
22    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
23    android:paddingStart="?android:attr/listPreferredItemPaddingStart">
24
25    <LinearLayout
26        android:id="@+id/preview_background"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:background="@drawable/accessibility_text_reading_preview"
30        android:clipChildren="true"
31        android:orientation="vertical"
32        android:padding="18dp">
33
34        <TextView
35            android:id="@+id/preview_label"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:text="@string/screen_zoom_preview_title"
39            style="@style/AccessibilityTextReadingPreviewTitle" />
40
41        <LinearLayout
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            android:orientation="vertical">
45            <com.android.settings.accessibility.TextReadingPreviewPager
46                android:id="@+id/preview_pager"
47                android:layout_width="wrap_content"
48                android:layout_height="217dp"
49                android:nestedScrollingEnabled="true" />
50            <LinearLayout
51                android:layout_width="match_parent"
52                android:layout_height="wrap_content"
53                android:orientation="horizontal"
54                android:layout_gravity="center_horizontal"
55                android:gravity="center_horizontal">
56                <ImageButton
57                    android:id="@+id/preview_left_button"
58                    android:src="@drawable/keyboard_arrow_left"
59                    android:layout_width="48dp"
60                    android:layout_height="48dp"
61                    android:layout_gravity="center_vertical"
62                    android:contentDescription="@string/preview_pager_previous_button"
63                    style="?android:attr/borderlessButtonStyle" />
64                <com.android.settings.widget.DotsPageIndicator
65                    android:id="@+id/page_indicator"
66                    style="@style/PreviewPagerPageIndicator"
67                    android:layout_width="wrap_content"
68                    android:layout_height="wrap_content"
69                    android:layout_gravity="center_vertical"
70                    android:padding="6dp"
71                    android:visibility="gone" />
72                <ImageButton
73                    android:id="@+id/preview_right_button"
74                    android:src="@drawable/keyboard_arrow_right"
75                    android:layout_width="48dp"
76                    android:layout_height="48dp"
77                    android:layout_gravity="center_vertical"
78                    android:contentDescription="@string/preview_pager_next_button"
79                    style="?android:attr/borderlessButtonStyle" />
80            </LinearLayout>
81        </LinearLayout>
82    </LinearLayout>
83</FrameLayout>
84