• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  Copyright 2013 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"
19    android:layout_height="match_parent">
20
21    <include layout="@layout/include_content" />
22
23    <!-- This FrameLayout insets its children based on system windows using
24         android:fitsSystemWindows. These insets will be stable across system
25         UI visibility changes because we use the SYSTEM_UI_FLAG_LAYOUT_STABLE
26         flag in addition to SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN and
27         SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION. -->
28    <FrameLayout android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:clipToPadding="false"
31        android:fitsSystemWindows="true">
32
33        <LinearLayout android:id="@+id/fullscreen_content_controls"
34            android:layout_width="match_parent"
35            android:layout_height="wrap_content"
36            android:layout_gravity="bottom|center_horizontal"
37            android:background="@color/fullscreen_control_overlay_color"
38            android:orientation="horizontal">
39
40            <Button android:id="@+id/placeholder_button"
41                android:layout_width="0dp"
42                android:layout_height="48dp"
43                android:layout_weight="1"
44                android:text="@string/placeholder_button"
45                android:background="?android:selectableItemBackground" />
46
47        </LinearLayout>
48    </FrameLayout>
49
50</FrameLayout>
51