1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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<FrameLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/background"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22  <!-- Menu layout -->
23  <FrameLayout
24      android:id="@+id/menu_container"
25      android:layout_width="match_parent"
26      android:layout_height="match_parent"
27      android:forceHasOverlappingRendering="false">
28
29      <!-- The margins for this container is calculated in the code depending on whether the
30           actions_container is visible. -->
31      <FrameLayout
32          android:id="@+id/expand_container"
33          android:layout_width="match_parent"
34          android:layout_height="match_parent">
35          <ImageView
36              android:id="@+id/expand_button"
37              android:layout_width="60dp"
38              android:layout_height="60dp"
39              android:layout_gravity="center"
40              android:contentDescription="@string/pip_phone_expand"
41              android:padding="10dp"
42              android:src="@drawable/pip_expand"
43              android:background="?android:selectableItemBackgroundBorderless" />
44      </FrameLayout>
45
46      <FrameLayout
47          android:id="@+id/actions_container"
48          android:layout_width="match_parent"
49          android:layout_height="@dimen/pip_action_size"
50          android:layout_gravity="bottom"
51          android:visibility="invisible">
52          <LinearLayout
53              android:id="@+id/actions_group"
54              android:layout_width="wrap_content"
55              android:layout_height="match_parent"
56              android:layout_gravity="center_horizontal"
57              android:orientation="horizontal"
58              android:divider="@android:color/transparent"
59              android:showDividers="middle" />
60      </FrameLayout>
61  </FrameLayout>
62
63    <ImageView
64        android:id="@+id/settings"
65        android:layout_width="@dimen/pip_action_size"
66        android:layout_height="@dimen/pip_action_size"
67        android:layout_gravity="top|start"
68        android:padding="@dimen/pip_action_padding"
69        android:contentDescription="@string/pip_phone_settings"
70        android:src="@drawable/ic_settings"
71        android:background="?android:selectableItemBackgroundBorderless" />
72
73    <ImageView
74        android:id="@+id/dismiss"
75        android:layout_width="@dimen/pip_action_size"
76        android:layout_height="@dimen/pip_action_size"
77        android:layout_gravity="top|end"
78        android:padding="@dimen/pip_action_padding"
79        android:contentDescription="@string/pip_phone_close"
80        android:src="@drawable/ic_close_white"
81        android:background="?android:selectableItemBackgroundBorderless" />
82
83</FrameLayout>
84