SmartUtil

public class SmartUtil

SmartUtil.

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)
Determine whether the content view can load more.
Link copied to clipboard
public static boolean canRefresh(View targetView, PointF touch)
Determine whether the content can be refreshed.
Link copied to clipboard
public static int dp2px(float dpValue)
Convert dp to px based on device resolution.
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)
Convert px to dp based on device resolution.
Link copied to clipboard
public static void scrollListBy(AbsListView listView, int y)