Search in sources :

Example 1 with EdgeEffectCompat

use of com.android.launcher3.util.EdgeEffectCompat in project android_packages_apps_Launcher3 by crdroidandroid.

the class Workspace method setLauncherOverlay.

public void setLauncherOverlay(LauncherOverlay overlay) {
    mOverlayEdgeEffect = overlay == null ? null : new OverlayEdgeEffect(getContext(), overlay);
    EdgeEffectCompat newEffect = overlay == null ? new EdgeEffectCompat(getContext()) : mOverlayEdgeEffect;
    if (mIsRtl) {
        mEdgeGlowRight = newEffect;
    } else {
        mEdgeGlowLeft = newEffect;
    }
    onOverlayScrollChanged(0);
}
Also used : OverlayEdgeEffect(com.android.launcher3.util.OverlayEdgeEffect) EdgeEffectCompat(com.android.launcher3.util.EdgeEffectCompat)

Example 2 with EdgeEffectCompat

use of com.android.launcher3.util.EdgeEffectCompat in project android_packages_apps_Launcher3 by crdroidandroid.

the class PagedView method initEdgeEffect.

protected void initEdgeEffect() {
    mEdgeGlowLeft = new EdgeEffectCompat(getContext());
    mEdgeGlowRight = new EdgeEffectCompat(getContext());
}
Also used : EdgeEffectCompat(com.android.launcher3.util.EdgeEffectCompat)

Aggregations

EdgeEffectCompat (com.android.launcher3.util.EdgeEffectCompat)2 OverlayEdgeEffect (com.android.launcher3.util.OverlayEdgeEffect)1