You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2017/08/01 02:54:40 UTC
[13/50] [abbrv] incubator-weex git commit: * [android] parallax bugfix
* [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/dev
Commit: 126306604543c201c3c557f0029364e76b3aa9c1
Parents: da56268
Author: zshshr <zh...@gmail.com>
Authored: Fri Jul 21 11:23:09 2017 +0800
Committer: zshshr <zh...@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);