1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 android:layout_width="match_parent" android:layout_height="match_parent" 19 > 20 <view class="com.example.android.apis.view.SystemUIModes$IV" 21 android:id="@+id/image" 22 android:src="@drawable/frantic" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:scaleType="fitXY" 26 /> 27 <FrameLayout 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:fitsSystemWindows="true"> 31 <GridLayout android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:layout_marginLeft="25dp" 34 android:layout_marginRight="25dp" 35 android:layout_marginBottom="25dp" 36 android:layout_gravity="bottom|center" 37 android:background="#60000000" 38 android:padding="8dp" 39 android:columnCount="2"> 40 41 <TextView 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:textColor="#FFFFFFFF" 45 android:textSize="16dp" 46 android:textStyle="bold" 47 android:gravity="left" 48 android:text="Mode:" 49 /> 50 <CheckBox 51 android:id="@+id/modeFullscreen" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:textColor="#FFFFFFFF" 55 android:text="FULLSCRN" 56 /> 57 <CheckBox 58 android:id="@+id/modeLowProfile" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:textColor="#FFFFFFFF" 62 android:text="LOW_PROFILE" 63 /> 64 <CheckBox 65 android:id="@+id/modeHideNavigation" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:textColor="#FFFFFFFF" 69 android:text="HIDE_NAV" 70 /> 71 72 <TextView 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:textColor="#FFFFFFFF" 76 android:textSize="16dp" 77 android:textStyle="bold" 78 android:gravity="left" 79 android:text="Layout:" 80 /> 81 <CheckBox 82 android:id="@+id/layoutFullscreen" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:textColor="#FFFFFFFF" 86 android:text="FULLSCRN" 87 /> 88 <CheckBox 89 android:id="@+id/layoutStable" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:textColor="#FFFFFFFF" 93 android:text="STABLE" 94 /> 95 <CheckBox 96 android:id="@+id/layoutHideNavigation" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:textColor="#FFFFFFFF" 100 android:text="HIDE_NAV" 101 /> 102 103 <TextView 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:layout_columnSpan="2" 107 android:textColor="#FFFFFFFF" 108 android:textSize="16dp" 109 android:textStyle="bold" 110 android:gravity="left" 111 android:text="Window:" 112 /> 113 <CheckBox 114 android:id="@+id/windowHideActionBar" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:textColor="#FFFFFFFF" 118 android:text="No ActionBar" 119 /> 120 <CheckBox 121 android:id="@+id/windowFullscreen" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:textColor="#FFFFFFFF" 125 android:text="FULLSCRN" 126 /> 127 <CheckBox 128 android:id="@+id/windowActionMode" 129 android:layout_width="wrap_content" 130 android:layout_height="wrap_content" 131 android:textColor="#FFFFFFFF" 132 android:text="Action Mode" 133 /> 134 <CheckBox 135 android:id="@+id/windowOverscan" 136 android:layout_width="wrap_content" 137 android:layout_height="wrap_content" 138 android:textColor="#FFFFFFFF" 139 android:text="OVERSCAN" 140 /> 141 <TextView 142 android:id="@+id/metricsText" 143 android:layout_width="match_parent" 144 android:layout_height="wrap_content" 145 android:layout_columnSpan="2" 146 android:textColor="#FFFFFFFF" 147 android:textSize="11dp" 148 android:textStyle="bold" 149 android:gravity="center" 150 /> 151 </GridLayout> 152 </FrameLayout> 153 </FrameLayout> 154