diff --git a/quickstep/res/layout/rotate_suggestion.xml b/quickstep/res/layout/rotate_suggestion.xml new file mode 100644 index 0000000000..07cf0c848c --- /dev/null +++ b/quickstep/res/layout/rotate_suggestion.xml @@ -0,0 +1,30 @@ + + + + + diff --git a/quickstep/res/values-sw600dp/dimens.xml b/quickstep/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000000..5d9e0596b5 --- /dev/null +++ b/quickstep/res/values-sw600dp/dimens.xml @@ -0,0 +1,19 @@ + + + 25dp + diff --git a/quickstep/res/values-sw900dp/dimens.xml b/quickstep/res/values-sw900dp/dimens.xml new file mode 100644 index 0000000000..3efa5e3ecf --- /dev/null +++ b/quickstep/res/values-sw900dp/dimens.xml @@ -0,0 +1,23 @@ + + + + 76dp + + + 0dp + \ No newline at end of file diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml index 4ebf5cf85f..98d43f1bbc 100644 --- a/quickstep/res/values/dimens.xml +++ b/quickstep/res/values/dimens.xml @@ -197,6 +197,19 @@ 80dp + + 95dp + + 0dp + + 0dp + + + 40dp + 20dp + 20dp + 10dp + @*android:dimen/taskbar_frame_height 48dp diff --git a/quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java b/quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java index 11349bba87..4b6dacd95e 100644 --- a/quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java @@ -210,7 +210,15 @@ public class NavbarButtonsViewController { mControllers.rotationButtonController.setRotationButton(rotationButton, null); } else { mFloatingRotationButton = new FloatingRotationButton(mContext, - R.string.accessibility_rotate_button); + R.string.accessibility_rotate_button, + R.layout.rotate_suggestion, + R.id.rotate_suggestion, + R.dimen.floating_rotation_button_min_margin, + R.dimen.rounded_corner_content_padding, + R.dimen.floating_rotation_button_taskbar_left_margin, + R.dimen.floating_rotation_button_taskbar_bottom_margin, + R.dimen.floating_rotation_button_diameter, + R.dimen.key_button_ripple_max_width); mControllers.rotationButtonController.setRotationButton(mFloatingRotationButton, mRotationButtonListener);