diff options
| author | Adam Cohen <adamcohen@google.com> | 2011-01-16 17:28:25 -0800 |
|---|---|---|
| committer | Adam Cohen <adamcohen@google.com> | 2011-01-16 17:38:03 -0800 |
| commit | 502045849f760f018f662d752020aef32d4cecd9 (patch) | |
| tree | 558af69693f86497a06cf3c663ebf0b4450422cd /core/java/android/widget/StackView.java | |
| parent | 2d1072ed7e5a263e7ddf4923d46538fbb25caf4f (diff) | |
Fixing StackView bug (Issue: 3321912)
Change-Id: I3a0e898e53a44146f1970479573880609f545799
Diffstat (limited to 'core/java/android/widget/StackView.java')
| -rw-r--r-- | core/java/android/widget/StackView.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/java/android/widget/StackView.java b/core/java/android/widget/StackView.java index b38838d5642f..2c100773951c 100644 --- a/core/java/android/widget/StackView.java +++ b/core/java/android/widget/StackView.java @@ -208,15 +208,12 @@ public class StackView extends AdapterViewAnimator { } } - if (fromIndex == -1 && toIndex == NUM_ACTIVE_VIEWS -1) { + if (fromIndex == -1 && toIndex == getNumActiveViews() -1) { // Fade item in if (view.getAlpha() == 1) { view.setAlpha(0); } - view.setScaleX(1 - PERSPECTIVE_SCALE_FACTOR); - view.setScaleY(1 - PERSPECTIVE_SCALE_FACTOR); - view.setTranslationX(mPerspectiveShiftX); - view.setTranslationY(0); + transformViewAtIndex(toIndex, view, false); view.setVisibility(VISIBLE); alphaOa = ObjectAnimator.ofFloat(view, "alpha", view.getAlpha(), 1.0f); |
