# SmartUtil

public class SmartUtil

SmartUtil Created by scwang on 2018/3/5.

## Constructors

SmartUtil
Link copied to clipboard
public void SmartUtil(int type)

## Properties

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

## Functions

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