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.OverscanActivity$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="center" 26 /> 27 <FrameLayout 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:fitsSystemWindows="true"> 31 <LinearLayout 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 android:padding="8dp" 40 android:orientation="vertical" 41 > 42 <LinearLayout 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:orientation="horizontal" 46 android:baselineAligned="true" 47 > 48 <TextView 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_weight="1" 52 android:textColor="#FFFFFFFF" 53 android:textSize="16dp" 54 android:textStyle="bold" 55 android:gravity="left" 56 android:text="Mode:" 57 /> 58 <LinearLayout 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:orientation="vertical" 62 android:baselineAlignedChildIndex="0" 63 > 64 <CheckBox 65 android:id="@+id/modeLowProfile" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:textColor="#FFFFFFFF" 69 android:text="LOW_PROFILE" 70 /> 71 <CheckBox 72 android:id="@+id/modeFullscreen" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_marginTop="-10dp" 76 android:textColor="#FFFFFFFF" 77 android:text="FULLSCREEN" 78 /> 79 <CheckBox 80 android:id="@+id/modeHideNavigation" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:layout_marginTop="-10dp" 84 android:textColor="#FFFFFFFF" 85 android:text="HIDE_NAVIGATION" 86 /> 87 </LinearLayout> 88 </LinearLayout> 89 <LinearLayout 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:orientation="horizontal" 93 android:baselineAligned="true" 94 > 95 <TextView 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:layout_weight="1" 99 android:textColor="#FFFFFFFF" 100 android:textSize="16dp" 101 android:textStyle="bold" 102 android:gravity="left" 103 android:text="Layout:" 104 /> 105 <LinearLayout 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:orientation="vertical" 109 android:baselineAlignedChildIndex="0" 110 > 111 <CheckBox 112 android:id="@+id/layoutStable" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:textColor="#FFFFFFFF" 116 android:text="STABLE" 117 /> 118 <CheckBox 119 android:id="@+id/layoutFullscreen" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:layout_marginTop="-10dp" 123 android:textColor="#FFFFFFFF" 124 android:text="FULLSCREEN" 125 /> 126 <CheckBox 127 android:id="@+id/layoutHideNavigation" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:layout_marginTop="-10dp" 131 android:textColor="#FFFFFFFF" 132 android:text="HIDE_NAVIGATION" 133 /> 134 </LinearLayout> 135 </LinearLayout> 136 <LinearLayout 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="horizontal" 140 android:baselineAligned="true" 141 > 142 <TextView 143 android:layout_width="wrap_content" 144 android:layout_height="wrap_content" 145 android:layout_weight="1" 146 android:textColor="#FFFFFFFF" 147 android:textSize="16dp" 148 android:textStyle="bold" 149 android:gravity="left" 150 android:text="Window:" 151 /> 152 <LinearLayout 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content" 155 android:orientation="vertical" 156 android:baselineAlignedChildIndex="0" 157 > 158 <CheckBox 159 android:id="@+id/windowFullscreen" 160 android:layout_width="wrap_content" 161 android:layout_height="wrap_content" 162 android:textColor="#FFFFFFFF" 163 android:text="FULLSCREEN" 164 /> 165 <CheckBox 166 android:id="@+id/windowHideActionBar" 167 android:layout_width="wrap_content" 168 android:layout_height="wrap_content" 169 android:layout_marginTop="-10dp" 170 android:textColor="#FFFFFFFF" 171 android:text="Hide ActionBar" 172 /> 173 <CheckBox 174 android:id="@+id/windowActionMode" 175 android:layout_width="wrap_content" 176 android:layout_height="wrap_content" 177 android:layout_marginTop="-10dp" 178 android:textColor="#FFFFFFFF" 179 android:text="Action Mode" 180 /> 181 <!-- Crappy hack to make these the same size as the 182 above groups. You'd never do this in real code. --> 183 <CheckBox 184 android:layout_width="wrap_content" 185 android:layout_height="0dp" 186 android:textColor="#FFFFFFFF" 187 android:text="HIDE_NAVIGATION" 188 /> 189 </LinearLayout> 190 </LinearLayout> 191 <TextView 192 android:id="@+id/metricsText" 193 android:layout_width="match_parent" 194 android:layout_height="wrap_content" 195 android:textColor="#FFFFFFFF" 196 android:textSize="11dp" 197 android:textStyle="bold" 198 android:gravity="center" 199 /> 200 </LinearLayout> 201 </FrameLayout> 202 </FrameLayout> 203