From 928bc9858768b3697c64a2fd30b48e206768e7d3 Mon Sep 17 00:00:00 2001 From: Andrey Epin Date: Wed, 26 Jul 2023 15:07:53 -0700 Subject: Add headline view argument to content preview UI "Sticky" headline is one of the requirements of the scrollable preview feature. Currently headling row is included in every preview type we have and to be "sticky" it should be moved out of all of them. This change is a preparation work that makes all of the preview UI controllers aware of a possible external headline row (but no actual external headline view is used). Bug: 287102904 Test: manual testing of all preivew types checking that there are no regressions Test: atest com.android.intentresolver.contentpreview Change-Id: Ib6110aaa82246e3354fdce18f431ab1c116e7b73 --- java/res/layout/chooser_grid_preview_file.xml | 8 +++++++- java/res/layout/chooser_grid_preview_files_text.xml | 8 +++++++- java/res/layout/chooser_grid_preview_image.xml | 8 +++++++- java/res/layout/chooser_grid_preview_text.xml | 8 +++++++- 4 files changed, 28 insertions(+), 4 deletions(-) (limited to 'java/res') diff --git a/java/res/layout/chooser_grid_preview_file.xml b/java/res/layout/chooser_grid_preview_file.xml index 3c836b4c..90832d23 100644 --- a/java/res/layout/chooser_grid_preview_file.xml +++ b/java/res/layout/chooser_grid_preview_file.xml @@ -26,7 +26,13 @@ android:orientation="vertical" android:background="?androidprv:attr/materialColorSurfaceContainer"> - + - + - + - +