Back to project page PullToRefresh.
The source code is released under:
Apache License
If you think the Android project PullToRefresh listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package uk.co.senab.actionbarpulltorefresh.library.sdk; /* w ww .ja v a 2s .co m*/ import android.os.Build; import android.view.View; public class Compat { public static void setAlpha(View view, float alpha) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { CompatV11.setAlpha(view, alpha); } else { CompatBase.setAlpha(view, alpha); } } public static void postOnAnimation(View view, Runnable runnable) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { CompatV16.postOnAnimation(view, runnable); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { CompatV11.postOnAnimation(view, runnable); } else { CompatBase.postOnAnimation(view, runnable); } } }