Back to project page CheckListView.
The source code is released under:
Apache License
If you think the Android project CheckListView 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 it.feio.android.checklistview.utils; /*from w w w . j a v a 2s .co m*/ import android.annotation.SuppressLint; import android.os.Build; import android.view.View; import android.view.animation.AlphaAnimation; public class AlphaManager { private AlphaManager(){ } @SuppressLint("NewApi") public static void setAlpha(View v, float alpha) { if (Build.VERSION.SDK_INT < 11) { final AlphaAnimation animation = new AlphaAnimation(1F, alpha); animation.setFillAfter(true); v.startAnimation(animation); } else { v.setAlpha(alpha); } } }