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