Example usage for android.widget EdgeEffect onPull

List of usage examples for android.widget EdgeEffect onPull

Introduction

In this page you can find the example usage for android.widget EdgeEffect onPull.

Prototype

public void onPull(float deltaDistance, float displacement) 

Source Link

Document

A view should call this when content is pulled away from an edge by the user.

Usage

From source file:com.android.contacts.compat.EdgeEffectCompat.java

/**
 * Compatibility method for {@link EdgeEffect#onPull(float, float)}, which is only available
 * on Lollipop+./*from w w w.  j a  v a2  s  .  co  m*/
 */
public static void onPull(EdgeEffect edgeEffect, float deltaDistance, float displacement) {
    if (CompatUtils.isLollipopCompatible()) {
        edgeEffect.onPull(deltaDistance, displacement);
    } else {
        edgeEffect.onPull(deltaDistance);
    }
}