1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<androidx.core.widget.NestedScrollView
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:fillViewport="true">
21
22    <LinearLayout
23        android:orientation="vertical"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content">
26
27        <include layout="@layout/suw_preview_seek_bar_view_pager"/>
28
29        <LinearLayout
30            android:orientation="vertical"
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:paddingStart="?android:attr/listPreferredItemPaddingStart"
34            android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
35
36            <com.android.settings.widget.DotsPageIndicator
37                android:id="@+id/page_indicator"
38                style="@style/PreviewPagerPageIndicator"
39                android:layout_width="wrap_content"
40                android:layout_height="wrap_content"
41                android:layout_gravity="center_horizontal"
42                android:padding="3dp"/>
43
44            <TextView
45                android:id="@+id/current_label"
46                android:layout_width="wrap_content"
47                android:layout_height="wrap_content"
48                android:layout_gravity="center_horizontal"
49                android:padding="6dp"
50                android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView"
51                android:elevation="2dp"/>
52
53            <LinearLayout
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content"
56                android:gravity="center_vertical">
57
58                <ImageView
59                    android:id="@+id/smaller"
60                    android:src="@drawable/ic_remove_24dp"
61                    android:contentDescription="@string/screen_zoom_make_smaller_desc"
62                    style="@style/screen_size_imageview_style"/>
63
64                <com.android.settings.widget.LabeledSeekBar
65                    android:id="@+id/seek_bar"
66                    android:layout_width="0dp"
67                    android:layout_height="48dp"
68                    android:layout_weight="1"
69                    style="@android:style/Widget.Material.SeekBar.Discrete"/>
70
71                <ImageView
72                    android:id="@+id/larger"
73                    android:src="@drawable/ic_add_24dp"
74                    android:contentDescription="@string/screen_zoom_make_larger_desc"
75                    style="@style/screen_size_imageview_style"/>
76            </LinearLayout>
77        </LinearLayout>
78    </LinearLayout>
79</androidx.core.widget.NestedScrollView>
80