Apply alpha animations on ImageView instances.
Bug #2479570
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java
index 233ce30..c81a907 100644
--- a/core/java/android/widget/ImageView.java
+++ b/core/java/android/widget/ImageView.java
@@ -183,6 +183,7 @@
int scale = alpha + (alpha >> 7);
if (mViewAlphaScale != scale) {
mViewAlphaScale = scale;
+ mColorMod = true;
applyColorMod();
}
return true;
diff --git a/core/java/android/widget/TabWidget.java b/core/java/android/widget/TabWidget.java
index 2e25b37..3328c13 100644
--- a/core/java/android/widget/TabWidget.java
+++ b/core/java/android/widget/TabWidget.java
@@ -177,6 +177,8 @@
*/
public void setDividerDrawable(Drawable drawable) {
mDividerDrawable = drawable;
+ requestLayout();
+ invalidate();
}
/**
@@ -186,6 +188,8 @@
*/
public void setDividerDrawable(int resId) {
mDividerDrawable = mContext.getResources().getDrawable(resId);
+ requestLayout();
+ invalidate();
}
/**
@@ -195,6 +199,8 @@
*/
public void setLeftStripDrawable(Drawable drawable) {
mBottomLeftStrip = drawable;
+ requestLayout();
+ invalidate();
}
/**
@@ -205,6 +211,8 @@
*/
public void setLeftStripDrawable(int resId) {
mBottomLeftStrip = mContext.getResources().getDrawable(resId);
+ requestLayout();
+ invalidate();
}
/**
@@ -214,7 +222,8 @@
*/
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 void setRightStripDrawable(int resId) {
mBottomLeftStrip = mContext.getResources().getDrawable(resId);
+ requestLayout();
+ invalidate();
}
/**
@@ -235,6 +246,7 @@
*/
public void setStripEnabled(boolean stripEnabled) {
mDrawBottomStrips = stripEnabled;
+ invalidate();
}
/**