Debian Codegraph @

libs/WindowManager/Shell/res/layout/tv_pip_menu.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2020 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17 <!-- Layout for TvPipMenuView -->
18 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/tv_pip_menu"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:gravity="center|top">
23
24 <!-- Matches the PiP app content -->
25 <View
26 android:id="@+id/tv_pip"
27 android:layout_width="0dp"
28 android:layout_height="0dp"
29 android:alpha="0"
30 android:background="@color/tv_pip_menu_background"
31 android:layout_marginTop="@dimen/pip_menu_outer_space"
32 android:layout_marginStart="@dimen/pip_menu_outer_space"
33 android:layout_marginEnd="@dimen/pip_menu_outer_space"/>
34
35 <ScrollView
36 android:id="@+id/tv_pip_menu_scroll"
37 android:layout_width="match_parent"
38 android:layout_height="match_parent"
39 android:layout_alignTop="@+id/tv_pip"
40 android:layout_alignStart="@+id/tv_pip"
41 android:layout_alignEnd="@+id/tv_pip"
42 android:layout_alignBottom="@+id/tv_pip"
43 android:scrollbars="none"
44 android:visibility="gone"/>
45
46 <HorizontalScrollView
47 android:id="@+id/tv_pip_menu_horizontal_scroll"
48 android:layout_width="match_parent"
49 android:layout_height="match_parent"
50 android:layout_alignTop="@+id/tv_pip"
51 android:layout_alignStart="@+id/tv_pip"
52 android:layout_alignEnd="@+id/tv_pip"
53 android:layout_alignBottom="@+id/tv_pip"
54 android:scrollbars="none">
55
56 <LinearLayout
57 android:id="@+id/tv_pip_menu_action_buttons"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:orientation="horizontal"
61 android:alpha="0">
62
63 <Space
64 android:layout_width="@dimen/pip_menu_button_wrapper_margin"
65 android:layout_height="@dimen/pip_menu_button_wrapper_margin"/>
66
67 <com.android.wm.shell.pip.tv.TvPipMenuActionButton
68 android:id="@+id/tv_pip_menu_fullscreen_button"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:src="@drawable/pip_ic_fullscreen_white"
72 android:text="@string/pip_fullscreen" />
73
74 <com.android.wm.shell.pip.tv.TvPipMenuActionButton
75 android:id="@+id/tv_pip_menu_close_button"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:src="@drawable/pip_ic_close_white"
79 android:text="@string/pip_close" />
80
81 <!-- More TvPipMenuActionButtons may be added here at runtime. -->
82
83 <com.android.wm.shell.pip.tv.TvPipMenuActionButton
84 android:id="@+id/tv_pip_menu_move_button"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:src="@drawable/pip_ic_move_white"
88 android:text="@string/pip_move" />
89
90 <com.android.wm.shell.pip.tv.TvPipMenuActionButton
91 android:id="@+id/tv_pip_menu_expand_button"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:src="@drawable/pip_ic_collapse"
95 android:visibility="gone"
96 android:text="@string/pip_collapse" />
97
98 <Space
99 android:layout_width="@dimen/pip_menu_button_wrapper_margin"
100 android:layout_height="@dimen/pip_menu_button_wrapper_margin"/>
101
102 </LinearLayout>
103 </HorizontalScrollView>
104
105 <View
106 android:id="@+id/tv_pip_border"
107 android:layout_width="0dp"
108 android:layout_height="0dp"
109 android:layout_marginTop="@dimen/pip_menu_outer_space_frame"
110 android:layout_marginStart="@dimen/pip_menu_outer_space_frame"
111 android:layout_marginEnd="@dimen/pip_menu_outer_space_frame"
112 android:background="@drawable/tv_pip_menu_border"/>
113
114 <FrameLayout
115 android:id="@+id/tv_pip_menu_edu_text_container"
116 android:layout_width="match_parent"
117 android:layout_height="match_parent"
118 android:layout_below="@+id/tv_pip"
119 android:layout_alignBottom="@+id/tv_pip_menu_frame"
120 android:layout_alignStart="@+id/tv_pip"
121 android:layout_alignEnd="@+id/tv_pip"
122 android:background="@color/tv_pip_menu_background"
123 android:clipChildren="true">
124
125 <TextView
126 android:id="@+id/tv_pip_menu_edu_text"
127 android:layout_width="wrap_content"
128 android:layout_height="@dimen/pip_menu_edu_text_view_height"
129 android:layout_gravity="bottom|center"
130 android:gravity="center"
131 android:paddingBottom="@dimen/pip_menu_border_width"
132 android:text="@string/pip_edu_text"
133 android:singleLine="true"
134 android:ellipsize="marquee"
135 android:marqueeRepeatLimit="1"
136 android:scrollHorizontally="true"
137 android:textAppearance="@style/TvPipEduText"/>
138 </FrameLayout>
139
140 <View
141 android:id="@+id/tv_pip_menu_frame"
142 android:layout_width="match_parent"
143 android:layout_height="match_parent"
144 android:layout_margin="@dimen/pip_menu_outer_space_frame"
145 android:background="@drawable/tv_pip_menu_border"/>
146
147 <ImageView
148 android:id="@+id/tv_pip_menu_arrow_up"
149 android:layout_width="@dimen/pip_menu_arrow_size"
150 android:layout_height="@dimen/pip_menu_arrow_size"
151 android:layout_centerHorizontal="true"
152 android:layout_alignParentTop="true"
153 android:alpha="0"
154 android:elevation="@dimen/pip_menu_arrow_elevation"
155 android:src="@drawable/pip_ic_move_up" />
156
157 <ImageView
158 android:id="@+id/tv_pip_menu_arrow_right"
159 android:layout_width="@dimen/pip_menu_arrow_size"
160 android:layout_height="@dimen/pip_menu_arrow_size"
161 android:layout_centerVertical="true"
162 android:layout_alignParentRight="true"
163 android:alpha="0"
164 android:elevation="@dimen/pip_menu_arrow_elevation"
165 android:src="@drawable/pip_ic_move_right" />
166
167 <ImageView
168 android:id="@+id/tv_pip_menu_arrow_down"
169 android:layout_width="@dimen/pip_menu_arrow_size"
170 android:layout_height="@dimen/pip_menu_arrow_size"
171 android:layout_centerHorizontal="true"
172 android:layout_alignParentBottom="true"
173 android:alpha="0"
174 android:elevation="@dimen/pip_menu_arrow_elevation"
175 android:src="@drawable/pip_ic_move_down" />
176
177 <ImageView
178 android:id="@+id/tv_pip_menu_arrow_left"
179 android:layout_width="@dimen/pip_menu_arrow_size"
180 android:layout_height="@dimen/pip_menu_arrow_size"
181 android:layout_centerVertical="true"
182 android:layout_alignParentLeft="true"
183 android:alpha="0"
184 android:elevation="@dimen/pip_menu_arrow_elevation"
185 android:src="@drawable/pip_ic_move_left" />
186 </RelativeLayout>