Search in sources :

Example 6 with WXImage

use of com.taobao.weex.ui.component.WXImage in project incubator-weex by apache.

the class WXImageView method autoReleaseImage.

public void autoReleaseImage() {
    if (enableBitmapAutoManage) {
        if (!isBitmapReleased) {
            isBitmapReleased = true;
            WXImage image = getComponent();
            if (image != null) {
                image.autoReleaseImage();
            }
        }
    }
}
Also used : WXImage(com.taobao.weex.ui.component.WXImage)

Aggregations

WXImage (com.taobao.weex.ui.component.WXImage)6 BitmapDrawable (android.graphics.drawable.BitmapDrawable)2 Drawable (android.graphics.drawable.Drawable)2 ViewGroup (android.view.ViewGroup)2 ImageDrawable (com.taobao.weex.utils.ImageDrawable)2 Bitmap (android.graphics.Bitmap)1 ArrayMap (android.support.v4.util.ArrayMap)1 JSONObject (com.alibaba.fastjson.JSONObject)1 ImmutableDomObject (com.taobao.weex.dom.ImmutableDomObject)1 WXAttr (com.taobao.weex.dom.WXAttr)1 WXDomObject (com.taobao.weex.dom.WXDomObject)1 WXEvent (com.taobao.weex.dom.WXEvent)1 WXStyle (com.taobao.weex.dom.WXStyle)1 ArrayStack (com.taobao.weex.el.parse.ArrayStack)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1