Files
android_development/samples/ApiDemos/res/layout/system_ui_modes.xml
Dianne Hackborn dbe4e751b7 New system UI API demos.
- Content browser that hides nav bar.
- Translucent bars.
- All the new flags on the direct system UI tweaker example.

Change-Id: I16fc8da252174db1ed45b0f60c37d6cbb8d7f13c
2013-10-11 16:17:58 -07:00

187 lines
7.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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"
android:layout_width="match_parent" android:layout_height="match_parent"
>
<view class="com.example.android.apis.view.SystemUIModes$IV"
android:id="@+id/image"
android:src="@drawable/frantic"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_marginBottom="25dp"
android:layout_gravity="bottom|center"
android:background="#60000000">
<GridLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:columnCount="@integer/system_ui_modes_cols">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:textSize="16dp"
android:textStyle="bold"
android:gravity="left"
android:text="Mode:"
/>
<CheckBox
android:id="@+id/modeFullscreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="FULLSCRN"
/>
<CheckBox
android:id="@+id/modeLowProfile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="LOW_PROFILE"
/>
<CheckBox
android:id="@+id/modeHideNavigation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="HIDE_NAV"
/>
<CheckBox
android:id="@+id/modeImmersive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="IMMERSIVE"
/>
<CheckBox
android:id="@+id/modeImmersiveSticky"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="IMM_STICKY"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:textSize="16dp"
android:textStyle="bold"
android:gravity="left"
android:text="Layout:"
/>
<CheckBox
android:id="@+id/layoutFullscreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="FULLSCRN"
/>
<CheckBox
android:id="@+id/layoutStable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="STABLE"
/>
<CheckBox
android:id="@+id/layoutHideNavigation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="HIDE_NAV"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_columnSpan="@integer/system_ui_modes_cols"
android:textColor="#FFFFFFFF"
android:textSize="16dp"
android:textStyle="bold"
android:gravity="left"
android:text="Window:"
/>
<CheckBox
android:id="@+id/windowHideActionBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="No ActionBar"
/>
<CheckBox
android:id="@+id/windowFullscreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="FULLSCRN"
/>
<CheckBox
android:id="@+id/windowActionMode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="Action Mode"
/>
<CheckBox
android:id="@+id/windowOverscan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="OVERSCAN"
/>
<CheckBox
android:id="@+id/windowTranslucentStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="TRANS_STATUS"
/>
<CheckBox
android:id="@+id/windowTranslucentNav"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:text="TRANS_NAV"
/>
<TextView
android:id="@+id/metricsText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_columnSpan="@integer/system_ui_modes_cols"
android:textColor="#FFFFFFFF"
android:textSize="11dp"
android:textStyle="bold"
android:gravity="center"
/>
</GridLayout>
</ScrollView>
</FrameLayout>
</FrameLayout>