• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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
17<androidx.core.widget.NestedScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:fillViewport="true">
22
23    <LinearLayout
24        android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content">
27
28        <include layout="@layout/preview_seek_bar_view_pager"/>
29
30        <LinearLayout
31            android:orientation="vertical"
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:paddingTop="16dp"
35            android:paddingStart="?android:attr/listPreferredItemPaddingStart"
36            android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
37
38            <com.android.settings.widget.DotsPageIndicator
39                android:id="@+id/page_indicator"
40                style="@style/PreviewPagerPageIndicator"
41                android:layout_width="wrap_content"
42                android:layout_height="wrap_content"
43                android:layout_gravity="center_horizontal"
44                android:padding="6dp"/>
45
46            <TextView
47                android:id="@+id/current_label"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:layout_gravity="center_horizontal"
51                android:padding="6dp"
52                android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView"
53                android:elevation="2dp"/>
54
55            <LinearLayout
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:gravity="center_vertical">
59
60                <ImageView
61                    android:id="@+id/smaller"
62                    android:layout_width="48dp"
63                    android:layout_height="48dp"
64                    android:background="?android:attr/selectableItemBackgroundBorderless"
65                    android:src="@drawable/ic_remove_24dp"
66                    android:tint="?android:attr/textColorPrimary"
67                    android:tintMode="src_in"
68                    android:scaleType="center"
69                    android:focusable="true"
70                    android:contentDescription="@string/screen_zoom_make_smaller_desc"/>
71
72                <com.android.settings.widget.LabeledSeekBar
73                    android:id="@+id/seek_bar"
74                    android:layout_width="0dp"
75                    android:layout_height="48dp"
76                    android:layout_weight="1"
77                    style="@android:style/Widget.Material.SeekBar.Discrete"/>
78
79                <ImageView
80                    android:id="@+id/larger"
81                    android:layout_width="48dp"
82                    android:layout_height="48dp"
83                    android:background="?android:attr/selectableItemBackgroundBorderless"
84                    android:src="@drawable/ic_add_24dp"
85                    android:tint="?android:attr/textColorPrimary"
86                    android:tintMode="src_in"
87                    android:scaleType="center"
88                    android:focusable="true"
89                    android:contentDescription="@string/screen_zoom_make_larger_desc"/>
90            </LinearLayout>
91
92            <TextView
93                android:layout_width="wrap_content"
94                android:layout_height="wrap_content"
95                android:text="@string/screen_zoom_summary"
96                android:layout_marginBottom="16dp"
97                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"/>
98        </LinearLayout>
99    </LinearLayout>
100</androidx.core.widget.NestedScrollView>
101