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 <ScrollView 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_marginLeft="25dp" 35 android:layout_marginRight="25dp" 36 android:layout_marginBottom="25dp" 37 android:layout_gravity="bottom|center" 38 android:background="#60000000"> 39 <GridLayout android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:padding="8dp" 42 android:columnCount="@integer/system_ui_modes_cols"> 43 44 <TextView 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:textColor="#FFFFFFFF" 48 android:textSize="16dp" 49 android:textStyle="bold" 50 android:gravity="left" 51 android:text="Mode:" 52 /> 53 <CheckBox 54 android:id="@+id/modeFullscreen" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:textColor="#FFFFFFFF" 58 android:text="FULLSCRN" 59 /> 60 <CheckBox 61 android:id="@+id/modeLowProfile" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:textColor="#FFFFFFFF" 65 android:text="LOW_PROFILE" 66 /> 67 <CheckBox 68 android:id="@+id/modeHideNavigation" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:textColor="#FFFFFFFF" 72 android:text="HIDE_NAV" 73 /> 74 <CheckBox 75 android:id="@+id/modeImmersive" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:textColor="#FFFFFFFF" 79 android:text="IMMERSIVE" 80 /> 81 <CheckBox 82 android:id="@+id/modeImmersiveSticky" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:textColor="#FFFFFFFF" 86 android:text="IMM_STICKY" 87 /> 88 89 <TextView 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:textColor="#FFFFFFFF" 93 android:textSize="16dp" 94 android:textStyle="bold" 95 android:gravity="left" 96 android:text="Layout:" 97 /> 98 <CheckBox 99 android:id="@+id/layoutFullscreen" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:textColor="#FFFFFFFF" 103 android:text="FULLSCRN" 104 /> 105 <CheckBox 106 android:id="@+id/layoutStable" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:textColor="#FFFFFFFF" 110 android:text="STABLE" 111 /> 112 <CheckBox 113 android:id="@+id/layoutHideNavigation" 114 android:layout_width="wrap_content" 115 android:layout_height="wrap_content" 116 android:textColor="#FFFFFFFF" 117 android:text="HIDE_NAV" 118 /> 119 120 <TextView 121 android:layout_width="wrap_content" 122 android:layout_height="wrap_content" 123 android:layout_columnSpan="@integer/system_ui_modes_cols" 124 android:textColor="#FFFFFFFF" 125 android:textSize="16dp" 126 android:textStyle="bold" 127 android:gravity="left" 128 android:text="Window:" 129 /> 130 <CheckBox 131 android:id="@+id/windowHideActionBar" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:textColor="#FFFFFFFF" 135 android:text="No ActionBar" 136 /> 137 <CheckBox 138 android:id="@+id/windowFullscreen" 139 android:layout_width="wrap_content" 140 android:layout_height="wrap_content" 141 android:textColor="#FFFFFFFF" 142 android:text="FULLSCRN" 143 /> 144 <CheckBox 145 android:id="@+id/windowActionMode" 146 android:layout_width="wrap_content" 147 android:layout_height="wrap_content" 148 android:textColor="#FFFFFFFF" 149 android:text="Action Mode" 150 /> 151 <CheckBox 152 android:id="@+id/windowOverscan" 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content" 155 android:textColor="#FFFFFFFF" 156 android:text="OVERSCAN" 157 /> 158 <CheckBox 159 android:id="@+id/windowTranslucentStatus" 160 android:layout_width="wrap_content" 161 android:layout_height="wrap_content" 162 android:textColor="#FFFFFFFF" 163 android:text="TRANS_STATUS" 164 /> 165 <CheckBox 166 android:id="@+id/windowTranslucentNav" 167 android:layout_width="wrap_content" 168 android:layout_height="wrap_content" 169 android:textColor="#FFFFFFFF" 170 android:text="TRANS_NAV" 171 /> 172 173 <TextView 174 android:id="@+id/metricsText" 175 android:layout_width="match_parent" 176 android:layout_height="wrap_content" 177 android:layout_columnSpan="@integer/system_ui_modes_cols" 178 android:textColor="#FFFFFFFF" 179 android:textSize="11dp" 180 android:textStyle="bold" 181 android:gravity="center" 182 /> 183 </GridLayout> 184 </ScrollView> 185 </FrameLayout> 186</FrameLayout> 187