Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42c79880 authored by Romain Guy's avatar Romain Guy
Browse files

Apply alpha animations on ImageView instances.

Bug #2479570
parent 7491d875
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -183,6 +183,7 @@ public class ImageView extends View {
            int scale = alpha + (alpha >> 7);
            if (mViewAlphaScale != scale) {
                mViewAlphaScale = scale;
                mColorMod = true;
                applyColorMod();
            }
            return true;
+13 −1
Original line number Diff line number Diff line
@@ -177,6 +177,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setDividerDrawable(Drawable drawable) {
        mDividerDrawable = drawable;
        requestLayout();
        invalidate();
    }

    /**
@@ -186,6 +188,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setDividerDrawable(int resId) {
        mDividerDrawable = mContext.getResources().getDrawable(resId);
        requestLayout();
        invalidate();
    }
    
    /**
@@ -195,6 +199,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setLeftStripDrawable(Drawable drawable) {
        mBottomLeftStrip = drawable;
        requestLayout();
        invalidate();
    }

    /**
@@ -205,6 +211,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setLeftStripDrawable(int resId) {
        mBottomLeftStrip = mContext.getResources().getDrawable(resId);
        requestLayout();
        invalidate();
    }

    /**
@@ -214,7 +222,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setRightStripDrawable(Drawable drawable) {
        mBottomLeftStrip = drawable;
    }
        requestLayout();
        invalidate();    }

    /**
     * Sets the drawable to use as the left part of the strip below the
@@ -224,6 +233,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setRightStripDrawable(int resId) {
        mBottomLeftStrip = mContext.getResources().getDrawable(resId);
        requestLayout();
        invalidate();
    }
    
    /**
@@ -235,6 +246,7 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
     */
    public void setStripEnabled(boolean stripEnabled) {
        mDrawBottomStrips = stripEnabled;
        invalidate();
    }

    /**