From 2e2d4ff6034bd2a386da3c878d1faa75b58d0aa2 Mon Sep 17 00:00:00 2001 From: Shamali P Date: Tue, 9 Jul 2024 13:55:45 +0000 Subject: [PATCH] Add a 3 dot vertical menu and styles (child cl makes it functional) Bug: 347288851 Flag: EXEMPT standalone picker Test: Manual Change-Id: I99985098034f6336f683b1ff3a47dce2aa8e596a --- res/drawable/ic_more_vert_dots.xml | 26 +++++++++++++++ .../widgets_two_pane_sheet_paged_view.xml | 33 +++++++++++++++---- .../widgets_two_pane_sheet_recyclerview.xml | 33 +++++++++++++++---- res/values-night-v34/colors.xml | 3 ++ res/values-v34/colors.xml | 3 ++ res/values/attrs.xml | 1 + res/values/colors.xml | 2 ++ res/values/strings.xml | 3 ++ res/values/styles.xml | 2 ++ 9 files changed, 94 insertions(+), 12 deletions(-) create mode 100644 res/drawable/ic_more_vert_dots.xml diff --git a/res/drawable/ic_more_vert_dots.xml b/res/drawable/ic_more_vert_dots.xml new file mode 100644 index 0000000000..c4659f821f --- /dev/null +++ b/res/drawable/ic_more_vert_dots.xml @@ -0,0 +1,26 @@ + + + + + \ No newline at end of file diff --git a/res/layout/widgets_two_pane_sheet_paged_view.xml b/res/layout/widgets_two_pane_sheet_paged_view.xml index 887efb809c..1f41680825 100644 --- a/res/layout/widgets_two_pane_sheet_paged_view.xml +++ b/res/layout/widgets_two_pane_sheet_paged_view.xml @@ -55,18 +55,39 @@ android:clipToOutline="true" android:orientation="vertical"> - + - - + + + + + - + - - + + + + + @android:color/system_on_surface_variant_dark + + @android:color/system_on_surface_variant_dark + diff --git a/res/values-v34/colors.xml b/res/values-v34/colors.xml index 26d3712bb1..d19d4a6ffd 100644 --- a/res/values-v34/colors.xml +++ b/res/values-v34/colors.xml @@ -27,4 +27,7 @@ @android:color/system_on_surface_light @android:color/system_on_surface_variant_light + + @android:color/system_on_surface_variant_light + diff --git a/res/values/attrs.xml b/res/values/attrs.xml index e4e047e1bb..eda36474b6 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -62,6 +62,7 @@ + diff --git a/res/values/colors.xml b/res/values/colors.xml index 8fa1992377..02f69f6e48 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -105,6 +105,7 @@ #FAF9F8 #1F1F1F #4C4D50 + @color/material_color_on_surface_variant #1F1F1F #444746 #C2E7FF @@ -125,6 +126,7 @@ #393939 #E3E3E3 #CCCDCF + @color/material_color_on_surface_variant #E3E3E3 #C4C7C5 #004A77 diff --git a/res/values/strings.xml b/res/values/strings.xml index d33adc41f3..967beb80d1 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -61,6 +61,9 @@ Touch & hold to move a widget. Double-tap & hold to move a widget or use custom actions. + + More options %1$d \u00d7 %2$d diff --git a/res/values/styles.xml b/res/values/styles.xml index f7273a03c7..7b43a3bd2a 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -244,6 +244,7 @@ @color/widget_picker_secondary_surface_color_light @color/widget_picker_title_color_light @color/widget_picker_description_color_light + @color/widget_picker_menu_options_color_light @color/widget_picker_header_app_title_color_light @@ -284,6 +285,7 @@ @color/widget_picker_title_color_dark @color/widget_picker_description_color_dark + @color/widget_picker_menu_options_color_dark @color/widget_picker_header_app_title_color_dark