From 51127d083d629434c8d40b856c18dcbc5e6bed22 Mon Sep 17 00:00:00 2001 From: tomnatan Date: Mon, 17 Jan 2022 17:06:54 +0000 Subject: [PATCH] [1/n] Letterbox Education: Add UI layouts Test: N/A Bug: 207010227 Change-Id: I9806121fcd0c6b3432dd5faf98b99bf9cfb747f5 --- ...letterbox_education_dismiss_background.xml | 21 ++++ ...ox_education_dismiss_background_ripple.xml | 21 ++++ .../letterbox_education_ic_expand_more.xml | 25 +++++ ...terbox_education_ic_expand_more_ripple.xml | 20 ++++ .../letterbox_education_ic_reposition.xml | 32 ++++++ ...letterbox_education_ic_screen_rotation.xml | 26 +++++ .../letterbox_education_ic_split_screen.xml | 32 ++++++ ...tterbox_education_dialog_action_layout.xml | 40 ++++++++ .../letterbox_education_dialog_layout.xml | 98 +++++++++++++++++++ .../letterbox_education_overlay_layout.xml | 24 +++++ .../letterbox_education_toast_layout.xml | 61 ++++++++++++ libs/WindowManager/Shell/res/values/attrs.xml | 22 +++++ .../WindowManager/Shell/res/values/colors.xml | 3 + libs/WindowManager/Shell/res/values/dimen.xml | 31 ++++++ .../Shell/res/values/strings.xml | 24 +++++ .../LetterboxEduDialogActionLayout.java | 71 ++++++++++++++ .../LetterboxEduDialogLayout.java | 94 ++++++++++++++++++ .../letterboxedu/LetterboxEduToastLayout.java | 69 +++++++++++++ 18 files changed, 714 insertions(+) create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background.xml create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background_ripple.xml create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more.xml create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more_ripple.xml create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_ic_reposition.xml create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_ic_screen_rotation.xml create mode 100644 libs/WindowManager/Shell/res/drawable/letterbox_education_ic_split_screen.xml create mode 100644 libs/WindowManager/Shell/res/layout/letterbox_education_dialog_action_layout.xml create mode 100644 libs/WindowManager/Shell/res/layout/letterbox_education_dialog_layout.xml create mode 100644 libs/WindowManager/Shell/res/layout/letterbox_education_overlay_layout.xml create mode 100644 libs/WindowManager/Shell/res/layout/letterbox_education_toast_layout.xml create mode 100644 libs/WindowManager/Shell/res/values/attrs.xml create mode 100644 libs/WindowManager/Shell/src/com/android/wm/shell/compatui/letterboxedu/LetterboxEduDialogActionLayout.java create mode 100644 libs/WindowManager/Shell/src/com/android/wm/shell/compatui/letterboxedu/LetterboxEduDialogLayout.java create mode 100644 libs/WindowManager/Shell/src/com/android/wm/shell/compatui/letterboxedu/LetterboxEduToastLayout.java diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background.xml new file mode 100644 index 0000000000000..723963ff8c9ad --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background_ripple.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background_ripple.xml new file mode 100644 index 0000000000000..0a3a81302a49b --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_dismiss_background_ripple.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more.xml new file mode 100644 index 0000000000000..ff5740609b84e --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more_ripple.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more_ripple.xml new file mode 100644 index 0000000000000..16dea484b644e --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_expand_more_ripple.xml @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_reposition.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_reposition.xml new file mode 100644 index 0000000000000..cbfcfd06e3b70 --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_reposition.xml @@ -0,0 +1,32 @@ + + + + + + + diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_screen_rotation.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_screen_rotation.xml new file mode 100644 index 0000000000000..469eb1e14849c --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_screen_rotation.xml @@ -0,0 +1,26 @@ + + + + + diff --git a/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_split_screen.xml b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_split_screen.xml new file mode 100644 index 0000000000000..dcb8aed05c9c6 --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/letterbox_education_ic_split_screen.xml @@ -0,0 +1,32 @@ + + + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/layout/letterbox_education_dialog_action_layout.xml b/libs/WindowManager/Shell/res/layout/letterbox_education_dialog_action_layout.xml new file mode 100644 index 0000000000000..cd1d99ae58b04 --- /dev/null +++ b/libs/WindowManager/Shell/res/layout/letterbox_education_dialog_action_layout.xml @@ -0,0 +1,40 @@ + + + + + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/layout/letterbox_education_dialog_layout.xml b/libs/WindowManager/Shell/res/layout/letterbox_education_dialog_layout.xml new file mode 100644 index 0000000000000..edf737fcc86ad --- /dev/null +++ b/libs/WindowManager/Shell/res/layout/letterbox_education_dialog_layout.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + +