Java Code Examples for android.view.ViewConfiguration#getScaledEdgeSlop()

The following examples show how to use android.view.ViewConfiguration#getScaledEdgeSlop() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MaterialBackgroundDetector.java    From Alibaba-Android-Certification with MIT License 5 votes vote down vote up
public MaterialBackgroundDetector(Context context, View view, Callback callback, int color) {
    mView = view;
    mCallback = callback;
    setColor(color);
    ViewConfiguration configuration = ViewConfiguration.get(context);
    mMinPadding = configuration.getScaledEdgeSlop();
}
 
Example 2
Source File: ScaleGestureDetector.java    From fanfouapp-opensource with Apache License 2.0 5 votes vote down vote up
public ScaleGestureDetector(final Context context,
        final OnScaleGestureListener listener) {
    final ViewConfiguration config = ViewConfiguration.get(context);
    this.mContext = context;
    this.mListener = listener;
    this.mEdgeSlop = config.getScaledEdgeSlop();
}
 
Example 3
Source File: FlingingNestedScrollView.java    From Twire with GNU General Public License v3.0 4 votes vote down vote up
private void init(Context context) {
    ViewConfiguration config = ViewConfiguration.get(context);
    slop = config.getScaledEdgeSlop();
}
 
Example 4
Source File: FlingingNestedScrollView.java    From Pocket-Plays-for-Twitch with GNU General Public License v3.0 4 votes vote down vote up
private void init(Context context) {
	ViewConfiguration config = ViewConfiguration.get(context);
	slop = config.getScaledEdgeSlop();
}
 
Example 5
Source File: GalleryRecyclerView.java    From YCGallery with Apache License 2.0 4 votes vote down vote up
public GalleryRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    isLocked = false;
    ViewConfiguration vc = get(context);
    touchSlop = vc.getScaledEdgeSlop();
}
 
Example 6
Source File: TwoFingerGestureDetector.java    From MotionViews-Android with MIT License 4 votes vote down vote up
public TwoFingerGestureDetector(Context context) {
    super(context);

    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();
}
 
Example 7
Source File: TwoFingerGestureDetector.java    From Nimingban with Apache License 2.0 4 votes vote down vote up
public TwoFingerGestureDetector(Context context) {
    super(context);

    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();
}
 
Example 8
Source File: TwoFingerGestureDetector.java    From MoeGallery with GNU General Public License v3.0 4 votes vote down vote up
public TwoFingerGestureDetector(Context context) {
	super(context);
	
    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();       	
}
 
Example 9
Source File: TwoFingerGestureDetector.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public TwoFingerGestureDetector(Context context) {
	super(context);
	
    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();       	
}
 
Example 10
Source File: TwoFingerGestureDetector.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public TwoFingerGestureDetector(Context context) {
	super(context);
	
    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();       	
}
 
Example 11
Source File: TwoFingerGestureDetector.java    From OpenMapKitAndroid with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public TwoFingerGestureDetector(Context context) {
    super(context);

    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();
}
 
Example 12
Source File: ScaleGestureDetector.java    From YiBo with Apache License 2.0 4 votes vote down vote up
public ScaleGestureDetector(Context context, OnScaleGestureListener listener) {
    ViewConfiguration config = ViewConfiguration.get(context);
    mContext = context;
    mListener = listener;
    mEdgeSlop = config.getScaledEdgeSlop();
}