From 5240556965ae5621420e563030dea8d456b4ceec Mon Sep 17 00:00:00 2001 From: Jacqueline Bronger Date: Mon, 22 Aug 2022 16:15:41 +0200 Subject: [PATCH] TV: Add PiP content sized views to one FrameLayout Restructuring of the tv pip menu layout to improve readability. Also includes some extra comments. Bug: 241744433 Test: manual - start a PiP and open the menu to see if the views including the edu text are still shown properly Change-Id: I2b39b3d251500de4d62d80829affbd8d2b6af42a --- .../Shell/res/layout/tv_pip_menu.xml | 136 +++++++++--------- .../wm/shell/pip/tv/TvPipMenuView.java | 8 +- 2 files changed, 75 insertions(+), 69 deletions(-) diff --git a/libs/WindowManager/Shell/res/layout/tv_pip_menu.xml b/libs/WindowManager/Shell/res/layout/tv_pip_menu.xml index 8533a5994d33c..75011957e4d8b 100644 --- a/libs/WindowManager/Shell/res/layout/tv_pip_menu.xml +++ b/libs/WindowManager/Shell/res/layout/tv_pip_menu.xml @@ -16,92 +16,91 @@ --> + android:id="@+id/tv_pip_menu" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center|top"> - + android:layout_marginEnd="@dimen/pip_menu_outer_space"> - + - + - + - - - + android:orientation="horizontal" + android:alpha="0"> - + - + - + - + - + - - + + + + + + + + + + - +