1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2014 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 xmlns:custom="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:background="#000000" 23 tools:context="com.example.android.visualgamecontroller.FullscreenActivity" 24 android:keepScreenOn="true"> 25 26 <LinearLayout 27 android:id="@+id/fullscreen_content" 28 android:orientation="vertical" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 > 32 <com.example.android.visualgamecontroller.ControllerView 33 android:id="@+id/controller" 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 android:padding="10dp" 37 android:layout_weight="100" 38 custom:showText="true" 39 custom:labelHeight="20dp" 40 custom:labelWidth="110dp" 41 custom:labelY="85dp" 42 custom:labelPosition="left" 43 custom:highlightStrength="1.12" 44 android:background="@android:color/white" 45 custom:pieRotation="0" 46 custom:labelColor="@android:color/black" 47 custom:autoCenterPointerInSlice="true" 48 custom:pointerRadius="4dp" 49 /> 50</LinearLayout> 51 52 <!-- 53 This FrameLayout insets its children based on system windows using 54 android:fitsSystemWindows. 55 --> 56 57 <FrameLayout 58 android:layout_width="match_parent" 59 android:layout_height="match_parent" 60 android:fitsSystemWindows="true" > 61 62 <LinearLayout 63 android:id="@+id/fullscreen_content_controls" 64 style="?metaButtonBarStyle" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:layout_gravity="bottom|center_horizontal" 68 android:background="@color/black_overlay" 69 android:orientation="horizontal" 70 tools:ignore="UselessParent" > 71 72 </LinearLayout> 73 </FrameLayout> 74 75</FrameLayout> 76