From 2463594fdd27fa3bef21b3309db30a9706a11dba Mon Sep 17 00:00:00 2001 From: Jacqueline Bronger Date: Mon, 17 May 2021 08:52:11 +0000 Subject: [PATCH] Add a tv bottom sheet to the SystemUI. Bug: 186720017 Test: manual Change-Id: I1661f4ad1c07ba80223556f8e864a7e1b7f3678c --- ...ottom_sheet_button_state_list_animator.xml | 52 ++++++++++ .../res/anim/tv_bottom_sheet_enter.xml | 23 +++++ .../res/anim/tv_bottom_sheet_exit.xml | 23 +++++ .../bottom_sheet_button_background_color.xml | 21 ++++ .../color/bottom_sheet_button_text_color.xml | 21 ++++ .../res/drawable/bottom_sheet_background.xml | 20 ++++ .../bottom_sheet_background_with_blur.xml | 20 ++++ .../bottom_sheet_button_background.xml | 20 ++++ .../SystemUI/res/layout/tv_bottom_sheet.xml | 87 ++++++++++++++++ .../SystemUI/res/values-television/colors.xml | 15 +++ .../SystemUI/res/values-television/dimens.xml | 23 +++++ .../SystemUI/res/values-television/styles.xml | 30 ++++++ .../systemui/tv/TvBottomSheetActivity.java | 98 +++++++++++++++++++ 13 files changed, 453 insertions(+) create mode 100644 packages/SystemUI/res/anim/tv_bottom_sheet_button_state_list_animator.xml create mode 100644 packages/SystemUI/res/anim/tv_bottom_sheet_enter.xml create mode 100644 packages/SystemUI/res/anim/tv_bottom_sheet_exit.xml create mode 100644 packages/SystemUI/res/color/bottom_sheet_button_background_color.xml create mode 100644 packages/SystemUI/res/color/bottom_sheet_button_text_color.xml create mode 100644 packages/SystemUI/res/drawable/bottom_sheet_background.xml create mode 100644 packages/SystemUI/res/drawable/bottom_sheet_background_with_blur.xml create mode 100644 packages/SystemUI/res/drawable/bottom_sheet_button_background.xml create mode 100644 packages/SystemUI/res/layout/tv_bottom_sheet.xml create mode 100644 packages/SystemUI/src/com/android/systemui/tv/TvBottomSheetActivity.java diff --git a/packages/SystemUI/res/anim/tv_bottom_sheet_button_state_list_animator.xml b/packages/SystemUI/res/anim/tv_bottom_sheet_button_state_list_animator.xml new file mode 100644 index 0000000000000..fc3b4ed6eecb6 --- /dev/null +++ b/packages/SystemUI/res/anim/tv_bottom_sheet_button_state_list_animator.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/anim/tv_bottom_sheet_enter.xml b/packages/SystemUI/res/anim/tv_bottom_sheet_enter.xml new file mode 100644 index 0000000000000..cace36d68b43b --- /dev/null +++ b/packages/SystemUI/res/anim/tv_bottom_sheet_enter.xml @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/anim/tv_bottom_sheet_exit.xml b/packages/SystemUI/res/anim/tv_bottom_sheet_exit.xml new file mode 100644 index 0000000000000..f7efe7cd25847 --- /dev/null +++ b/packages/SystemUI/res/anim/tv_bottom_sheet_exit.xml @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/color/bottom_sheet_button_background_color.xml b/packages/SystemUI/res/color/bottom_sheet_button_background_color.xml new file mode 100644 index 0000000000000..9b0bae09b3261 --- /dev/null +++ b/packages/SystemUI/res/color/bottom_sheet_button_background_color.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/color/bottom_sheet_button_text_color.xml b/packages/SystemUI/res/color/bottom_sheet_button_text_color.xml new file mode 100644 index 0000000000000..05248f17097bc --- /dev/null +++ b/packages/SystemUI/res/color/bottom_sheet_button_text_color.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/bottom_sheet_background.xml b/packages/SystemUI/res/drawable/bottom_sheet_background.xml new file mode 100644 index 0000000000000..87850a0d00ece --- /dev/null +++ b/packages/SystemUI/res/drawable/bottom_sheet_background.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/bottom_sheet_background_with_blur.xml b/packages/SystemUI/res/drawable/bottom_sheet_background_with_blur.xml new file mode 100644 index 0000000000000..cd2aa9c751d9f --- /dev/null +++ b/packages/SystemUI/res/drawable/bottom_sheet_background_with_blur.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/bottom_sheet_button_background.xml b/packages/SystemUI/res/drawable/bottom_sheet_button_background.xml new file mode 100644 index 0000000000000..585a6bc771f7c --- /dev/null +++ b/packages/SystemUI/res/drawable/bottom_sheet_button_background.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/tv_bottom_sheet.xml b/packages/SystemUI/res/layout/tv_bottom_sheet.xml new file mode 100644 index 0000000000000..b69cdc76ae40e --- /dev/null +++ b/packages/SystemUI/res/layout/tv_bottom_sheet.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + +