diff options
author | Yvonne Wong <ywong@cyngn.com> | 2015-11-20 10:49:59 -0800 |
---|---|---|
committer | Tom Powell <zifnab@zifnab06.net> | 2017-03-26 15:52:41 -0700 |
commit | cc0408d2269fb2e265a3b108b55073980e64820f (patch) | |
tree | adbe0fab15e9d2ee90232aa955a258d6a95bfa49 /src/com/android/launcher3/OverviewPanel.java | |
parent | 744942defd27dee02b4b6361a5dca7310ec4b386 (diff) | |
download | android_packages_apps_Trebuchet-cc0408d2269fb2e265a3b108b55073980e64820f.tar.gz android_packages_apps_Trebuchet-cc0408d2269fb2e265a3b108b55073980e64820f.tar.bz2 android_packages_apps_Trebuchet-cc0408d2269fb2e265a3b108b55073980e64820f.zip |
Reimplement CM Settings Overview Panel in the new Launcher Part 1
- Adds vertical sliding panel and animations associated with opening and closing the panel
- Adds the views for settings and animation for the drawer arrow
- Enables hiding workspace icon labels, hiding drawer icon labels, scrolling wallpaper, and larger icons
- Changes how ragged grid custom icon sizes gets defined
Change-Id: I1a82215a09486b4770494e665e598efdbabd1d3e
Diffstat (limited to 'src/com/android/launcher3/OverviewPanel.java')
-rw-r--r-- | src/com/android/launcher3/OverviewPanel.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/com/android/launcher3/OverviewPanel.java b/src/com/android/launcher3/OverviewPanel.java new file mode 100644 index 000000000..2fdca6330 --- /dev/null +++ b/src/com/android/launcher3/OverviewPanel.java @@ -0,0 +1,32 @@ +package com.android.launcher3; + +import android.content.Context; +import android.graphics.Rect; +import android.util.AttributeSet; +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; + +public class OverviewPanel extends VerticalSlidingPanel implements Insettable { + public OverviewPanel(Context context) { + super(context); + } + + public OverviewPanel(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public OverviewPanel(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + } + + @Override + public void setInsets(Rect insets) { + LinearLayout layout = (LinearLayout) + findViewById(R.id.settings_container); + FrameLayout.LayoutParams lp = + (FrameLayout.LayoutParams) layout.getLayoutParams(); + lp.bottomMargin = insets.bottom; + layout.setLayoutParams(lp); + } +}
\ No newline at end of file |