SmartUtil

public class SmartUtil

SmartUtil Created by scwang on 2018/3/5.

Constructors

Link copied to clipboard
public void SmartUtil(int type)

Properties

Link copied to clipboard
public static int INTERPOLATOR_DECELERATE
Link copied to clipboard
public static int INTERPOLATOR_VISCOUS_FLUID

Functions

Link copied to clipboard
public static boolean canLoadMore(View targetView, PointF touch, boolean contentFull)
判断内容视图是否可以加载更多
Link copied to clipboard
public static boolean canRefresh(View targetView, PointF touch)
判断内容是否可以刷新
Link copied to clipboard
public static int dp2px(float dpValue)
根据手机的分辨率从 dp 的单位 转成为 px(像素)
Link copied to clipboard
public static void fling(View scrollableView, int velocity)
Link copied to clipboard
public float getInterpolation(float input)
Link copied to clipboard
public static boolean isContentView(View view)
Link copied to clipboard
public static boolean isScrollableView(View view)
Link copied to clipboard
public static boolean isTransformedTouchPointInView(View group, View child, float x, float y, PointF outLocalPoint)
Link copied to clipboard
public static int measureViewHeight(View view)
Link copied to clipboard
public static float px2dp(int pxValue)
根据手机的分辨率从 px(像素) 的单位 转成为 dp
Link copied to clipboard
public static void scrollListBy(AbsListView listView, int y)