From 2539a6a10e65151dbcbb4a8e38a6a9d841ac287f Mon Sep 17 00:00:00 2001 From: Angela Wang Date: Fri, 30 Jun 2023 12:08:51 +0000 Subject: [PATCH] Enable scrolling in screen flash color selector dialog Screen flash color selector dialog doesn't display correctly in landscappe mode when adjust to large display size from 'Accessibility > Display size and text > Display size'. Make the layout be scrollable to prevent strange clipped UI. Bug:287671988 Test: check the UI manually Change-Id: I37eb604d362fe4373d26f97a9397230babc6eafd --- res/layout/layout_color_selector.xml | 292 ++++++++++---------- res/layout/layout_color_selector_dialog.xml | 10 +- 2 files changed, 152 insertions(+), 150 deletions(-) diff --git a/res/layout/layout_color_selector.xml b/res/layout/layout_color_selector.xml index c366add00ec..a6b9cc89688 100644 --- a/res/layout/layout_color_selector.xml +++ b/res/layout/layout_color_selector.xml @@ -14,161 +14,167 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + android:padding="20dp" + android:clipToPadding="false" + android:scrollbarStyle="outsideOverlay"> - - - - + + android:layout_marginBottom="10dp" + android:orientation="horizontal"> - + - + + + + + + + + + + + + + + android:layout_marginBottom="10dp" + android:orientation="horizontal"> - + - + + + + + + + + + + + + + + android:layout_marginBottom="10dp" + android:orientation="horizontal"> - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/res/layout/layout_color_selector_dialog.xml b/res/layout/layout_color_selector_dialog.xml index 70d4509f07e..e107689ae6a 100644 --- a/res/layout/layout_color_selector_dialog.xml +++ b/res/layout/layout_color_selector_dialog.xml @@ -17,16 +17,12 @@ + android:gravity="center_horizontal" + android:orientation="vertical"> + android:layout_height="wrap_content"/> \ No newline at end of file