Search in sources :

Example 1 with IRenderResult

use of com.taobao.weex.ui.view.IRenderResult in project incubator-weex by apache.

the class LayoutParamsProperty method set.

@Override
public void set(View object, Integer value) {
    LayoutParams layoutParams;
    if (object != null && (layoutParams = object.getLayoutParams()) != null) {
        setProperty(layoutParams, value);
        if (object instanceof IRenderResult) {
            WXComponent component = ((IRenderResult) object).getComponent();
            if (component != null) {
                component.notifyNativeSizeChanged(layoutParams.width, layoutParams.height);
            }
        }
        object.requestLayout();
    }
}
Also used : LayoutParams(android.view.ViewGroup.LayoutParams) IRenderResult(com.taobao.weex.ui.view.IRenderResult) WXComponent(com.taobao.weex.ui.component.WXComponent)

Aggregations

LayoutParams (android.view.ViewGroup.LayoutParams)1 WXComponent (com.taobao.weex.ui.component.WXComponent)1 IRenderResult (com.taobao.weex.ui.view.IRenderResult)1