diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index a900209f738a..202f4d645634 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2673,6 +2673,62 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean */ public static final String POINTER_SPEED = "pointer_speed"; + /** + * Whether or not to use the app sidebar + * + * @hide + */ + public static final String APP_SIDEBAR_ENABLED = "app_sidebar_enabled"; + + /** + * User defined transparency level for sidebar + * + * @hide + */ + public static final String APP_SIDEBAR_TRANSPARENCY = "app_sidebar_transparency"; + + /** + * Disable text labels for app sidebar items + * + * @hide + */ + public static final String APP_SIDEBAR_DISABLE_LABELS = "app_sidebar_disable_labels"; + + /** + * Position of app sidebar + * + * @hide + */ + public static final String APP_SIDEBAR_POSITION = "app_sidebar_position"; + + /** + * Width of the appbar trigger + * + * @hide + */ + public static final String APP_SIDEBAR_TRIGGER_WIDTH = "app_sidebar_trigger_width"; + + /** + * Position of appbar trigger + * + * @hide + */ + public static final String APP_SIDEBAR_TRIGGER_TOP = "app_sidebar_trigger_top"; + + /** + * Height of the appbar trigger + * + * @hide + */ + public static final String APP_SIDEBAR_TRIGGER_HEIGHT = "app_sidebar_trigger_height"; + + /** + * Whether to display the trigger region or not + * + * @hide + */ + public static final String APP_SIDEBAR_SHOW_TRIGGER = "app_sidebar_show_trigger"; + /** * Whether to enable pie controls * The value is 1, 2 or 0). diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index baa2436888fc..8b58f9be5c77 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -77,6 +77,9 @@ + + + @@ -239,6 +242,21 @@ + + + + + + + + + + + + + + + + + diff --git a/packages/SystemUI/res/drawable/sidebar_drag_enter.xml b/packages/SystemUI/res/drawable/sidebar_drag_enter.xml new file mode 100644 index 000000000000..dab369373855 --- /dev/null +++ b/packages/SystemUI/res/drawable/sidebar_drag_enter.xml @@ -0,0 +1,10 @@ + + + + + + + diff --git a/packages/SystemUI/res/drawable/sidebar_drag_exit.xml b/packages/SystemUI/res/drawable/sidebar_drag_exit.xml new file mode 100644 index 000000000000..8b96818255b0 --- /dev/null +++ b/packages/SystemUI/res/drawable/sidebar_drag_exit.xml @@ -0,0 +1,10 @@ + + + + + + + diff --git a/packages/SystemUI/res/drawable/trigger_region.xml b/packages/SystemUI/res/drawable/trigger_region.xml new file mode 100644 index 000000000000..dcbef4a5ab9a --- /dev/null +++ b/packages/SystemUI/res/drawable/trigger_region.xml @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/packages/SystemUI/res/layout/app_sidebar.xml b/packages/SystemUI/res/layout/app_sidebar.xml new file mode 100644 index 000000000000..f802bb221e2a --- /dev/null +++ b/packages/SystemUI/res/layout/app_sidebar.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/packages/SystemUI/res/layout/folder_icon.xml b/packages/SystemUI/res/layout/folder_icon.xml new file mode 100644 index 000000000000..bee6bf22c388 --- /dev/null +++ b/packages/SystemUI/res/layout/folder_icon.xml @@ -0,0 +1,34 @@ + + + + + + + diff --git a/packages/SystemUI/res/layout/setup_user_folder.xml b/packages/SystemUI/res/layout/setup_user_folder.xml new file mode 100644 index 000000000000..55772546ab09 --- /dev/null +++ b/packages/SystemUI/res/layout/setup_user_folder.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + diff --git a/packages/SystemUI/res/layout/sidebar_configuration_layout.xml b/packages/SystemUI/res/layout/sidebar_configuration_layout.xml new file mode 100644 index 000000000000..259dc51b250d --- /dev/null +++ b/packages/SystemUI/res/layout/sidebar_configuration_layout.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + +