FLAG_FULLSCREEN, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_HIDE_NAVIGATION. Bug: 5052456 Change-Id: I3c23caa83a66b585ae1102e3d473f6e4f096840d
80 lines
3.0 KiB
XML
80 lines
3.0 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.OverscanActivity$IV"
|
|
android:id="@+id/image"
|
|
android:src="@drawable/frantic"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="center"
|
|
/>
|
|
<LinearLayout
|
|
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"
|
|
android:padding="8dp"
|
|
android:orientation="horizontal"
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
>
|
|
<TextView
|
|
android:id="@+id/text1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="#FFFFFFFF"
|
|
android:textSize="16dp"
|
|
android:textStyle="bold"
|
|
android:gravity="left"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/text2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="#FFFFFFFF"
|
|
android:textSize="11dp"
|
|
android:textStyle="bold"
|
|
android:gravity="left"
|
|
/>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/switchy"
|
|
android:background="#C0000000"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginTop="4dp"
|
|
android:padding="10dp"
|
|
android:textColor="#FFFFFFFF"
|
|
android:textSize="11dp"
|
|
android:textStyle="bold"
|
|
android:clickable="true"
|
|
android:onClick="clicked"
|
|
android:text="Switch"
|
|
/>
|
|
</LinearLayout>
|
|
</FrameLayout>
|