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