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();
}
}
Aggregations