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 17 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:systemui="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/menu_container" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:importantForAccessibility="no" 23 > 24 <!-- Use width & height=match_parent for parent FrameLayout and buttons because they are placed 25 inside a view that has a size controlled by weight. Ensure weight is large enough to support 26 icon size. --> 27 28 <com.android.systemui.statusbar.policy.KeyButtonView 29 android:id="@+id/menu" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:scaleType="centerInside" 33 systemui:keyCode="82" 34 systemui:playSound="false" 35 android:visibility="invisible" 36 android:contentDescription="@string/accessibility_menu" 37 /> 38 <com.android.systemui.statusbar.policy.KeyButtonView 39 android:id="@+id/ime_switcher" 40 android:layout_width="match_parent" 41 android:layout_height="match_parent" 42 android:visibility="invisible" 43 android:contentDescription="@string/accessibility_ime_switch_button" 44 android:scaleType="centerInside" 45 /> 46 <com.android.systemui.statusbar.policy.KeyButtonView 47 android:id="@+id/rotate_suggestion" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:visibility="invisible" 51 android:scaleType="centerInside" 52 android:contentDescription="@string/accessibility_rotate_button" 53 /> 54 <com.android.systemui.statusbar.policy.KeyButtonView 55 android:id="@+id/accessibility_button" 56 android:layout_width="match_parent" 57 android:layout_height="match_parent" 58 android:visibility="invisible" 59 android:contentDescription="@string/accessibility_accessibility_button" 60 android:scaleType="centerInside" 61 /> 62 </FrameLayout> 63