1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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<LinearLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:minHeight="?android:attr/listPreferredItemHeightSmall"
21    android:gravity="center_vertical"
22    android:background="?android:attr/activatedBackgroundIndicator"
23    android:clipToPadding="false"
24    android:orientation="vertical">
25
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:orientation="horizontal"
30        android:paddingTop="24dp"
31        android:paddingBottom="16dp"
32        android:paddingStart="?android:attr/listPreferredItemPaddingStart"
33        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
34        android:background="@android:color/white">
35
36        <TextView
37            android:id="@android:id/title"
38            android:layout_width="0dp"
39            android:layout_height="wrap_content"
40            android:layout_weight="1"
41            android:singleLine="true"
42            android:textAppearance="?android:attr/textAppearanceListItem"
43            android:ellipsize="marquee"/>
44
45        <Switch
46            android:id="@android:id/switch_widget"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:gravity="end|center_vertical"/>
50
51    </LinearLayout>
52
53    <LinearLayout
54        android:id="@+id/gesture_animation_view"
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:background="@color/gestures_setting_background_color"
58        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
59        android:orientation="horizontal">
60
61        <com.android.settings.widget.AspectRatioFrameLayout
62            android:layout_width="0dp"
63            android:layout_height="match_parent"
64            android:layout_weight="1"
65            android:padding="@dimen/gesture_animation_padding">
66
67            <TextureView
68                android:id="@+id/gesture_video"
69                android:layout_width="match_parent"
70                android:layout_height="match_parent"
71                android:layout_gravity="center"/>
72
73            <ImageView
74                android:id="@+id/gesture_image"
75                android:layout_width="match_parent"
76                android:layout_height="match_parent"
77                android:scaleType="fitXY"
78                android:background="@color/gestures_setting_background_color"/>
79
80            <ImageView
81                android:id="@+id/gesture_play_button"
82                android:layout_width="@dimen/gestures_play_button_size"
83                android:layout_height="@dimen/gestures_play_button_size"
84                android:src="@drawable/ic_gesture_play_button"
85                android:gravity="center"
86                android:layout_gravity="center"/>
87
88        </com.android.settings.widget.AspectRatioFrameLayout>
89
90        <TextView
91            android:id="@android:id/summary"
92            android:layout_width="0dp"
93            android:layout_height="match_parent"
94            android:layout_weight="1"
95            android:paddingTop="@dimen/gestures_settings_padding_top_bottom"
96            android:paddingStart="?android:attr/listPreferredItemPaddingStart"
97            android:textAppearance="?android:attr/textAppearanceListItemSecondary"
98            android:textColor="?android:attr/textColorSecondary"
99            android:maxLines="10"
100            android:ellipsize="end"/>
101
102    </LinearLayout>
103
104</LinearLayout>
105