Example usage for android.support.v4.view GestureDetectorCompat GestureDetectorCompat

List of usage examples for android.support.v4.view GestureDetectorCompat GestureDetectorCompat

Introduction

In this page you can find the example usage for android.support.v4.view GestureDetectorCompat GestureDetectorCompat.

Prototype

public GestureDetectorCompat(Context context, OnGestureListener onGestureListener) 

Source Link

Usage

From source file:com.dreamliner.dropdownmenu.listener.OnRecyclerItemClickListener.java

public OnRecyclerItemClickListener(RecyclerView recyclerView) {
    this.recyclerView = recyclerView;
    mGestureDetector = new GestureDetectorCompat(recyclerView.getContext(),
            new ItemTouchHelperGestureListener());
}

From source file:com.ibm.mil.readyapps.telco.termsconditions.TermsConditionsActivity.java

@Override
/**/*  w  w w.j  a va2  s.co m*/
 *
 */
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.telco_card_termsconditions_view);

    ButterKnife.bind(this);
    detector = new GestureDetectorCompat(this, new GestureListener());
    setupToolbar();
    setupUI();
}

From source file:com.google.android.apps.santatracker.village.VillageView.java

public void setVillage(Village village) {
    mVillage = village;
    mDetector = new GestureDetectorCompat(getContext(), mVillage.getTouchListener());
}

From source file:io.apptik.multiview.extras.ClickItemTouchListener.java

ClickItemTouchListener(RecyclerView hostView) {
    mGestureDetector =/*from w  ww  . ja  v a  2 s. c o  m*/
            //new ItemClickGestureDetector(
            new GestureDetectorCompat(hostView.getContext(), new ItemClickGestureListener(hostView));
}

From source file:com.xgleng.androiddemo.touchscreen.CommonGestures.java

public CommonGestures(Context ctx) {
    mContext = ctx;/*  ww w.ja  v  a2  s .  c o  m*/
    mTapGestureDetector = new GestureDetectorCompat(mContext, new TapGestureListener());
    mScaleDetector = new ScaleGestureDetector(mContext, new ScaleDetectorListener());
}

From source file:cn.kylinhuang.play.view.CommonGestures.java

@SuppressLint("NewApi")
public CommonGestures(Activity ctx) {
    mContext = ctx;/*from   w  ww  . j  a  v a2  s .c o  m*/
    mDoubleTapGestureDetector = new GestureDetectorCompat(mContext, new DoubleTapGestureListener());
    mTapGestureDetector = new GestureDetectorCompat(mContext, new TapGestureListener());
    mScaleDetector = new ScaleGestureDetector(mContext, new ScaleDetectorListener());
}

From source file:com.waz.zclient.pages.main.popup.ViewPagerLikeRecyclerView.java

public ViewPagerLikeRecyclerView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    gestureDetector = new GestureDetectorCompat(context, this);
}

From source file:com.anandmuralidhar.assimpandroid.GestureClass.java

public GestureClass(Activity activity) {

    // instantiate two listeners for detecting double-tap/drag and pinch-zoom
    mTapScrollDetector = new GestureDetectorCompat(activity, new MyTapScrollListener());
    mScaleDetector = new ScaleGestureDetector(activity.getApplicationContext(), new ScaleListener());

}

From source file:com.community.yuequ.player.CommonGestures.java

public CommonGestures(Activity ctx) {
    mContext = ctx;//from   w  w w . j a v  a  2 s .  c o m
    mDoubleTapGestureDetector = new GestureDetectorCompat(mContext, new DoubleTapGestureListener());
    mTapGestureDetector = new GestureDetectorCompat(mContext, new TapGestureListener());
    mScaleDetector = new ScaleGestureDetector(mContext, new ScaleDetectorListener());
}

From source file:com.spoiledmilk.ibikecph.controls.SortableListView.java

private void init() {
    mDetector = new GestureDetectorCompat(getContext(), new MyGestureListener());
}