From 5e4370b5de1347909d514e279e1aada582458820 Mon Sep 17 00:00:00 2001 From: Andrey Epin Date: Tue, 1 Aug 2023 14:44:48 -0700 Subject: Make preview scrollable under a feature flag. Base feature implementation controlled by a flag. A few issues are known and will be addressed separately. Known issues: * No (dis)appearance animation for the A-Z targets divider bar. Bug: 287102904 Test: Enabled the flag programmatically and test the new functionality. Manually test for possible regressions with the unset flag. Test: atest com.android.intentresolver.contentpreview Test: atest IntentResolverUnitTests:UnbundledChooserActivityTest Change-Id: I8273cf365a1e00b1acff4030086f1a044ad7531f --- .../res/layout/chooser_grid_scrollable_preview.xml | 128 +++++++++++++++++++++ java/res/layout/chooser_list_per_profile_wrap.xml | 42 +++++++ java/res/values/attrs.xml | 5 + 3 files changed, 175 insertions(+) create mode 100644 java/res/layout/chooser_grid_scrollable_preview.xml create mode 100644 java/res/layout/chooser_list_per_profile_wrap.xml (limited to 'java/res') diff --git a/java/res/layout/chooser_grid_scrollable_preview.xml b/java/res/layout/chooser_grid_scrollable_preview.xml new file mode 100644 index 00000000..a5ac75a2 --- /dev/null +++ b/java/res/layout/chooser_grid_scrollable_preview.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/res/layout/chooser_list_per_profile_wrap.xml b/java/res/layout/chooser_list_per_profile_wrap.xml new file mode 100644 index 00000000..157fa75d --- /dev/null +++ b/java/res/layout/chooser_list_per_profile_wrap.xml @@ -0,0 +1,42 @@ + + + + + + + + diff --git a/java/res/values/attrs.xml b/java/res/values/attrs.xml index 67acb3ae..c9f2c300 100644 --- a/java/res/values/attrs.xml +++ b/java/res/values/attrs.xml @@ -32,6 +32,11 @@ will push all ignoreOffset siblings below it when the drawer is moved i.e. setting the top limit the ignoreOffset elements. --> + + -- cgit v1.2.3-59-g8ed1b