Home | History | Annotate | Download | only in layout
      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:layout_width="match_parent"
     55         android:layout_height="wrap_content"
     56         android:background="@color/gestures_setting_background_color"
     57         android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     58         android:orientation="horizontal">
     59 
     60         <com.android.settings.widget.AspectRatioFrameLayout
     61             android:id="@+id/gesture_animation_frame"
     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:background="@color/gestures_setting_background_color"/>
     78 
     79             <ImageView
     80                 android:id="@+id/gesture_play_button"
     81                 android:layout_width="@dimen/gestures_play_button_size"
     82                 android:layout_height="@dimen/gestures_play_button_size"
     83                 android:src="@drawable/ic_gesture_play_button"
     84                 android:gravity="center"
     85                 android:layout_gravity="center"/>
     86 
     87         </com.android.settings.widget.AspectRatioFrameLayout>
     88 
     89         <TextView
     90             android:id="@android:id/summary"
     91             android:layout_width="0dp"
     92             android:layout_height="match_parent"
     93             android:layout_weight="1"
     94             android:paddingTop="@dimen/gestures_settings_padding_top_bottom"
     95             android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     96             android:textAppearance="?android:attr/textAppearanceListItemSecondary"
     97             android:textColor="?android:attr/textColorSecondary"
     98             android:maxLines="10"
     99             android:ellipsize="end"/>
    100 
    101     </LinearLayout>
    102 
    103 </LinearLayout>
    104