getScaledEdgeSlop ( )源码实例Demo

android.view.ViewConfiguration#getScaledEdgeSlop ( )源码实例Demo

下面列出了android.view.ViewConfiguration#getScaledEdgeSlop ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

public MaterialBackgroundDetector(Context context, View view, Callback callback, int color) {
    mView = view;
    mCallback = callback;
    setColor(color);
    ViewConfiguration configuration = ViewConfiguration.get(context);
    mMinPadding = configuration.getScaledEdgeSlop();
}
 
public ScaleGestureDetector(final Context context,
        final OnScaleGestureListener listener) {
    final ViewConfiguration config = ViewConfiguration.get(context);
    this.mContext = context;
    this.mListener = listener;
    this.mEdgeSlop = config.getScaledEdgeSlop();
}
 
源代码3 项目: Twire   文件: FlingingNestedScrollView.java
private void init(Context context) {
    ViewConfiguration config = ViewConfiguration.get(context);
    slop = config.getScaledEdgeSlop();
}
 
private void init(Context context) {
	ViewConfiguration config = ViewConfiguration.get(context);
	slop = config.getScaledEdgeSlop();
}
 
源代码5 项目: YCGallery   文件: GalleryRecyclerView.java
public GalleryRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    isLocked = false;
    ViewConfiguration vc = get(context);
    touchSlop = vc.getScaledEdgeSlop();
}
 
public TwoFingerGestureDetector(Context context) {
    super(context);

    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();
}
 
源代码7 项目: Nimingban   文件: TwoFingerGestureDetector.java
public TwoFingerGestureDetector(Context context) {
    super(context);

    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();
}
 
源代码8 项目: MoeGallery   文件: TwoFingerGestureDetector.java
public TwoFingerGestureDetector(Context context) {
	super(context);
	
    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();       	
}
 
public TwoFingerGestureDetector(Context context) {
	super(context);
	
    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();       	
}
 
源代码10 项目: UltimateAndroid   文件: TwoFingerGestureDetector.java
public TwoFingerGestureDetector(Context context) {
	super(context);
	
    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();       	
}
 
public TwoFingerGestureDetector(Context context) {
    super(context);

    ViewConfiguration config = ViewConfiguration.get(context);
    mEdgeSlop = config.getScaledEdgeSlop();
}
 
源代码12 项目: YiBo   文件: ScaleGestureDetector.java
public ScaleGestureDetector(Context context, OnScaleGestureListener listener) {
    ViewConfiguration config = ViewConfiguration.get(context);
    mContext = context;
    mListener = listener;
    mEdgeSlop = config.getScaledEdgeSlop();
}