You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/01/17 06:56:09 UTC

[GitHub] leonWenAYG opened a new issue #2058: Android WXImage组件在可见状态和隐藏状态会自动刷新

leonWenAYG opened a new issue #2058: Android WXImage组件在可见状态和隐藏状态会自动刷新
URL: https://github.com/apache/incubator-weex/issues/2058
 
 
   ## Describe the bug
   Android WXImage组件在加载完图片后,如果进入下一个界面,再退回来,WXImage组件在可见状态和隐藏状态切换时会刷新图片,在恢复可见状态时,会触发 autoRecoverImage()方法来重新加载图片,这样浪费资源而且还体验不好,我看到这个方法里有一句
   if(mAutoRecycle) {
         setSrc(mSrc);
    }
   而 WXImage的方法中 有一个setProperty(String key, Object param) 方法,可以设置该属性
   mAutoRecycle = WXUtils.getBoolean(param, mAutoRecycle);
   所以我想知道,如何调用setProperty方法,来设置我的weex image不自动刷新图片
   
   ## Environment
   * Device: 华为p20
   * OS: Android 8.1
   * Version 0.19.0
   * Build from source yes
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services