• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<LinearLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="wrap_content"
19    android:layout_height="wrap_content"
20    android:gravity="top|center_horizontal"
21    android:orientation="vertical">
22
23    <com.android.systemui.tv.pip.PipRecentsControlsView
24        android:id="@+id/pip_controls"
25        android:layout_width="wrap_content"
26        android:layout_height="wrap_content"
27        android:layout_gravity="center_horizontal"
28        android:clipToPadding="false">
29
30        <View
31            android:id="@+id/scrim"
32            android:layout_width="160dp"
33            android:layout_height="32dp"
34            android:translationY="-46dp"
35            android:layout_gravity="top|center_horizontal"
36            android:background="@drawable/tv_pip_recents_overlay_scrim"
37            android:alpha="0" />
38        <com.android.systemui.tv.pip.PipControlsView
39            android:id="@+id/pip_control_contents"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:layout_marginTop="10dp"
43            android:layout_gravity="top|center_horizontal" />
44    </com.android.systemui.tv.pip.PipRecentsControlsView>
45
46    <!-- Placeholder view to handle focus change between Recents row and PIP controls
47        in talkback mode -->
48    <View
49        android:id="@+id/recents"
50        android:layout_width="1dp"
51        android:layout_height="1dp"
52        android:focusable="true" />
53</LinearLayout>
54