@@ -0,0 +1,698 @@
+package com.camnter.newlife.utils;%0A%0Aimport android.graphics.drawable.Drawable;%0Aimport android.os.Build;%0Aimport android.view.View;%0A%0A/**%0A * Description%EF%BC%9AViewUtil%0A * Created by%EF%BC%9ACaMnter%0A * Time%EF%BC%9A2015-12-04 22:33%0A */%0Apublic class ViewUtil %7B%0A    /**%0A     * Set view alpha%0A     * %E8%AE%BE%E7%BD%AE%E9%80%8F%E6%98%8E%E5%BA%A6%0A     *%0A     * @param view view%0A     * @param alpha alpha value%0A     */%0A    public static void setAlpha(View view, int alpha) %7B%0A        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.HONEYCOMB) %7B%0A            view.setAlpha(alpha / 255.0f);%0A        %7D else %7B%0A            Drawable drawable = view.getBackground();%0A            if (drawable != null) %7B%0A                drawable.setAlpha(alpha);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

add ViewUtil