Repository: incubator-weex
Updated Branches:
  refs/heads/0.15-dev 9764e25ea -> 92a1616b2


* [android] parallax bugfix


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/12630660
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/12630660
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/12630660

Branch: refs/heads/0.15-dev
Commit: 126306604543c201c3c557f0029364e76b3aa9c1
Parents: da56268
Author: zshshr <zhengshihan...@gmail.com>
Authored: Fri Jul 21 11:23:09 2017 +0800
Committer: zshshr <zhengshihan...@gmail.com>
Committed: Fri Jul 21 11:23:09 2017 +0800

----------------------------------------------------------------------
 .../main/java/com/alibaba/weex/extend/component/WXParallax.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/12630660/android/playground/app/src/main/java/com/alibaba/weex/extend/component/WXParallax.java
----------------------------------------------------------------------
diff --git 
a/android/playground/app/src/main/java/com/alibaba/weex/extend/component/WXParallax.java
 
b/android/playground/app/src/main/java/com/alibaba/weex/extend/component/WXParallax.java
index 7cceebc..cf248d3 100644
--- 
a/android/playground/app/src/main/java/com/alibaba/weex/extend/component/WXParallax.java
+++ 
b/android/playground/app/src/main/java/com/alibaba/weex/extend/component/WXParallax.java
@@ -22,7 +22,6 @@ import android.graphics.Color;
 import android.support.annotation.Nullable;
 import android.text.TextUtils;
 import android.view.View;
-import android.view.animation.AlphaAnimation;
 import android.view.animation.Animation;
 import android.view.animation.AnimationSet;
 import android.view.animation.RotateAnimation;
@@ -329,7 +328,8 @@ public class WXParallax extends WXDiv implements 
OnWXScrollListener, ICheckBindi
           if (fromOpacity == toOpacity) {
             return null;
           }
-          animation = new AlphaAnimation(fromOpacity, toOpacity);
+          setOpacity(toOpacity);
+//        animation = new AlphaAnimation(fromOpacity, toOpacity);
 
           if (WXEnvironment.isApkDebugable()) {
             WXLogUtils.d("WXParallax", "opacity fromOpacity:" + fromOpacity + 
" toOpacity:" + toOpacity);

Reply via email to