1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2023 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <FrameLayout 23 android:id="@+id/zoom_ui_seekbar" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent"> 26 27 <SeekBar 28 android:id="@+id/zoom_ui_seekbar_slider" 29 android:layout_width="match_parent" 30 android:layout_height="@dimen/zoom_ui_seekbar_touch_area_height" 31 android:layout_gravity="center" 32 android:background="@null" 33 android:contentDescription="@string/zoom_seek_bar_description" 34 android:maxHeight="@dimen/zoom_ui_seekbar_half_height" 35 android:mirrorForRtl="false" 36 android:progressDrawable="@drawable/ic_zoom_ui_seekbar_progress" 37 android:thumb="@drawable/ic_zoom_ui_seekbar_thumb" 38 android:visibility="gone" /> 39 40 <com.android.deviceaswebcam.view.ZoomKnob 41 android:id="@+id/zoom_ui_knob" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_gravity="center_vertical|left" 45 android:background="@drawable/ic_zoom_ui_knob_bg" 46 android:importantForAccessibility="no" 47 android:textColor="@color/zoom_ui_toggle_bar_text_color" 48 android:visibility="gone" /> 49 50 <FrameLayout 51 android:id="@+id/zoom_ui_toggle_options" 52 android:layout_width="@dimen/zoom_ui_toggle_three_options_layout_width" 53 android:layout_height="@dimen/zoom_ui_seekbar_touch_area_height" 54 android:layout_gravity="center" 55 android:contentDescription="@string/zoom_ratio_description" 56 android:layoutDirection="ltr" 57 android:paddingStart="@dimen/zoom_ui_toggle_options_layout_padding_start" 58 android:paddingEnd="@dimen/zoom_ui_toggle_options_layout_padding_end"> 59 60 <ImageView 61 android:id="@+id/zoom_ui_toggle_background" 62 android:layout_width="@dimen/zoom_ui_toggle_three_options_layout_width" 63 android:layout_height="@dimen/zoom_ui_toggle_height" 64 android:layout_gravity="center" 65 android:background="@drawable/ic_zoom_ui_toggle_bg" /> 66 67 <ImageView 68 android:id="@+id/zoom_ui_toggle_btn_selected" 69 android:layout_width="@dimen/zoom_ui_toggle_btn_size" 70 android:layout_height="@dimen/zoom_ui_toggle_btn_size" 71 android:layout_gravity="center" 72 android:background="@drawable/ic_zoom_ui_toggle_button_bg" /> 73 74 <LinearLayout 75 android:layout_width="match_parent" 76 android:layout_height="match_parent" 77 android:layout_gravity="center" 78 android:layoutDirection="ltr" 79 android:orientation="horizontal"> 80 81 <TextView 82 android:id="@+id/zoom_ui_toggle_option_low" 83 android:layout_width="0dp" 84 android:layout_height="@dimen/zoom_ui_toggle_btn_size" 85 android:layout_gravity="center_vertical|left" 86 android:layout_weight="1" 87 android:accessibilityTraversalAfter="@+id/zoom_ui_toggle_options" 88 android:gravity="center" 89 android:importantForAccessibility="yes" 90 android:maxLines="1" 91 android:textAlignment="center" 92 android:textColor="@color/zoom_ui_toggle_bar_text_color" 93 android:textSize="@dimen/zoom_ui_toggle_btn_text_size" /> 94 95 <TextView 96 android:id="@+id/zoom_ui_toggle_option_middle" 97 android:layout_width="0dp" 98 android:layout_height="@dimen/zoom_ui_toggle_btn_size" 99 android:layout_gravity="center" 100 android:layout_weight="1" 101 android:accessibilityTraversalAfter="@+id/zoom_ui_toggle_option_low" 102 android:gravity="center" 103 android:maxLines="1" 104 android:textAlignment="center" 105 android:textColor="@color/zoom_ui_toggle_bar_text_color" 106 android:textSize="@dimen/zoom_ui_toggle_btn_text_size" /> 107 108 <TextView 109 android:id="@+id/zoom_ui_toggle_option_high" 110 android:layout_width="0dp" 111 android:layout_height="@dimen/zoom_ui_toggle_btn_size" 112 android:layout_gravity="center_vertical|right" 113 android:layout_weight="1" 114 android:accessibilityTraversalAfter="@+id/zoom_ui_toggle_option_middle" 115 android:gravity="center" 116 android:maxLines="1" 117 android:textAlignment="center" 118 android:textColor="@color/zoom_ui_toggle_bar_text_color" 119 android:textSize="@dimen/zoom_ui_toggle_btn_text_size" /> 120 </LinearLayout> 121 122 <FrameLayout 123 android:id="@+id/zoom_ui_overlay" 124 android:layout_width="match_parent" 125 android:layout_height="match_parent" 126 android:background="@android:color/transparent" 127 android:importantForAccessibility="no" /> 128 </FrameLayout> 129 130 </FrameLayout> 131</FrameLayout> 132