76 lines
2.7 KiB
XML
76 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2014 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#000000"
|
|
tools:context="com.example.android.visualgamecontroller.FullscreenActivity"
|
|
android:keepScreenOn="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fullscreen_content"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
>
|
|
<com.example.android.visualgamecontroller.ControllerView
|
|
android:id="@+id/controller"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="10dp"
|
|
android:layout_weight="100"
|
|
custom:showText="true"
|
|
custom:labelHeight="20dp"
|
|
custom:labelWidth="110dp"
|
|
custom:labelY="85dp"
|
|
custom:labelPosition="left"
|
|
custom:highlightStrength="1.12"
|
|
android:background="@android:color/white"
|
|
custom:pieRotation="0"
|
|
custom:labelColor="@android:color/black"
|
|
custom:autoCenterPointerInSlice="true"
|
|
custom:pointerRadius="4dp"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<!--
|
|
This FrameLayout insets its children based on system windows using
|
|
android:fitsSystemWindows.
|
|
-->
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fullscreen_content_controls"
|
|
style="?metaButtonBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:background="@color/black_overlay"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UselessParent" >
|
|
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|