blob: 2b33e17a5fbdf6f59dc2323bba16fd91db7c45b8 [file] [log] [blame]
Winson Chung15504af2016-11-02 18:11:36 -07001<?xml version="1.0" encoding="utf-8"?>
Winson Chunga29eb982016-12-14 12:01:27 -08002<!-- Copyright (C) 2016 The Android Open Source Project
Winson Chung15504af2016-11-02 18:11:36 -07003
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-->
Winson Chung15504af2016-11-02 18:11:36 -070016<FrameLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
Mady Mellor81d40612017-03-10 15:14:10 -080018 android:id="@+id/background"
Winson Chung15504af2016-11-02 18:11:36 -070019 android:layout_width="match_parent"
Mady Mellor81d40612017-03-10 15:14:10 -080020 android:layout_height="match_parent">
Winson Chunga29eb982016-12-14 12:01:27 -080021
Hongwei Wang5051db62019-06-28 12:27:20 -070022 <!-- 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 android:accessibilityTraversalAfter="@id/dismiss">
Winson Chunga29eb982016-12-14 12:01:27 -080029
Hongwei Wang5051db62019-06-28 12:27:20 -070030 <!-- The margins for this container is calculated in the code depending on whether the
31 actions_container is visible. -->
32 <FrameLayout
33 android:id="@+id/expand_container"
34 android:layout_width="match_parent"
35 android:layout_height="match_parent">
36 <ImageButton
37 android:id="@+id/expand_button"
38 android:layout_width="60dp"
39 android:layout_height="60dp"
40 android:layout_gravity="center"
41 android:contentDescription="@string/pip_phone_expand"
42 android:padding="10dp"
43 android:src="@drawable/pip_expand"
44 android:background="?android:selectableItemBackgroundBorderless" />
45 </FrameLayout>
Mady Mellor81d40612017-03-10 15:14:10 -080046
Hongwei Wang5051db62019-06-28 12:27:20 -070047 <FrameLayout
48 android:id="@+id/actions_container"
49 android:layout_width="match_parent"
50 android:layout_height="@dimen/pip_action_size"
51 android:layout_gravity="bottom"
52 android:visibility="invisible">
53 <LinearLayout
54 android:id="@+id/actions_group"
55 android:layout_width="wrap_content"
56 android:layout_height="match_parent"
57 android:layout_gravity="center_horizontal"
58 android:orientation="horizontal"
59 android:divider="@android:color/transparent"
60 android:showDividers="middle" />
61 </FrameLayout>
62 </FrameLayout>
Mady Mellor637cd482017-03-21 10:39:42 -070063
Hongwei Wanga6e034e2019-06-20 13:18:43 -070064 <ImageButton
Winson Chunga556fe62017-12-19 14:46:23 -080065 android:id="@+id/settings"
66 android:layout_width="@dimen/pip_action_size"
67 android:layout_height="@dimen/pip_action_size"
68 android:layout_gravity="top|start"
69 android:padding="@dimen/pip_action_padding"
70 android:contentDescription="@string/pip_phone_settings"
71 android:src="@drawable/ic_settings"
72 android:background="?android:selectableItemBackgroundBorderless" />
73
Hongwei Wanga6e034e2019-06-20 13:18:43 -070074 <ImageButton
Winson Chunga556fe62017-12-19 14:46:23 -080075 android:id="@+id/dismiss"
76 android:layout_width="@dimen/pip_action_size"
77 android:layout_height="@dimen/pip_action_size"
78 android:layout_gravity="top|end"
79 android:padding="@dimen/pip_action_padding"
80 android:contentDescription="@string/pip_phone_close"
81 android:src="@drawable/ic_close_white"
82 android:background="?android:selectableItemBackgroundBorderless" />
Mady Mellor637cd482017-03-21 10:39:42 -070083
Ben Lin906a02b2020-05-20 13:22:16 -070084 <!--TODO (b/156917828): Add content description for a11y purposes?-->
85 <ImageButton
86 android:id="@+id/resize_handle"
Ben Lin39419af2020-05-21 16:07:44 -070087 android:layout_width="@dimen/pip_resize_handle_size"
88 android:layout_height="@dimen/pip_resize_handle_size"
Ben Lin906a02b2020-05-20 13:22:16 -070089 android:layout_gravity="top|start"
Ben Lin39419af2020-05-21 16:07:44 -070090 android:layout_margin="@dimen/pip_resize_handle_margin"
Ben Lin906a02b2020-05-20 13:22:16 -070091 android:src="@drawable/pip_resize_handle"
92 android:background="?android:selectableItemBackgroundBorderless" />
Winson Chung15504af2016-11-02 18:11:36 -070093</FrameLayout>