Java Code Examples for com.taobao.weex.ui.component.WXComponent#setPadding()
The following examples show how to use
com.taobao.weex.ui.component.WXComponent#setPadding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UpdateStyleAction.java From ucar-weex-core with Apache License 2.0 | 6 votes |
@Override public void executeRender(RenderActionContext context) { WXComponent component = context.getComponent(mRef); if (component == null) { return; } component.updateProperties(mData); if (mData.containsKey(Constants.Name.PADDING) || mData.containsKey(Constants.Name.PADDING_TOP) || mData.containsKey(Constants.Name.PADDING_LEFT) || mData.containsKey(Constants.Name.PADDING_RIGHT) || mData.containsKey(Constants.Name.PADDING_BOTTOM) || mData.containsKey(Constants.Name.BORDER_WIDTH)) { Spacing padding = mPadding; Spacing border = mBorder; component.setPadding(padding, border); } }
Example 2
Source File: WXRenderStatement.java From weex-uikit with MIT License | 5 votes |
/** * set padding style of View */ void setPadding(String ref, Spacing padding, Spacing border) { WXComponent component = mRegistry.get(ref); if (component == null) { return; } component.setPadding(padding, border); }
Example 3
Source File: WXRenderStatement.java From weex with Apache License 2.0 | 5 votes |
/** * set padding style of View */ void setPadding(String ref, Spacing padding, Spacing border) { WXComponent component = mRegistry.get(ref); if (component == null) { return; } component.setPadding(padding, border); }