Apply alpha animations on ImageView instances.

Bug #2479570
This commit is contained in:
Romain Guy
2010-03-01 17:20:57 -08:00
parent 7491d8757f
commit 42c79880b0
2 changed files with 14 additions and 1 deletions

View File

@@ -183,6 +183,7 @@ public class ImageView extends View {
int scale = alpha + (alpha >> 7);
if (mViewAlphaScale != scale) {
mViewAlphaScale = scale;
mColorMod = true;
applyColorMod();
}
return true;

View File

@@ -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();
}
/**