private int dp2px(int dp) {
        return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, getContext().getResources().getDisplayMetrics());
    }
android-PullRefreshLayout
Created by baoyz on 15/9/20.
library/src/main/java/com/baoyz/widget/SmartisanDrawable.java