Java Code Examples for com.taobao.weex.utils.WXUtils#getFloatByViewport()
The following examples show how to use
com.taobao.weex.utils.WXUtils#getFloatByViewport() .
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: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingRight(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING_RIGHT), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING), viewport); } return temp; }
Example 2
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingLeft(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING_LEFT), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING), viewport); } return temp; }
Example 3
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
private float getBorderWidth(String key, int viewport) { float temp = WXUtils.getFloatByViewport(get(key), viewport); if (WXUtils.isUndefined(temp)) { return getBorderWidth(viewport); } return temp; }
Example 4
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getPaddingTop(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING_TOP), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.PADDING), viewport); } return temp; }
Example 5
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginBottom(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN_BOTTOM), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN), viewport); } return temp; }
Example 6
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginRight(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN_RIGHT), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN), viewport); } return temp; }
Example 7
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginTop(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN_TOP), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN), viewport); } return temp; }
Example 8
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 5 votes |
public float getMarginLeft(int viewport) { float temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN_LEFT), viewport); if (WXUtils.isUndefined(temp)) { temp = WXUtils.getFloatByViewport(get(Constants.Name.MARGIN), viewport); } return temp; }
Example 9
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getTop(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.TOP), viewport); }
Example 10
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getWidth(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.WIDTH), viewport); }
Example 11
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getLeft(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.LEFT), viewport); }
Example 12
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getBottom(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.BOTTOM), viewport); }
Example 13
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getRight(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.RIGHT), viewport); }
Example 14
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getMargin(int viewport){ return WXUtils.getFloatByViewport(get(Constants.Name.MARGIN), viewport); }
Example 15
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getBorderWidth(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.BORDER_WIDTH), viewport); }
Example 16
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getMaxHeight(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.MAX_HEIGHT), viewport); }
Example 17
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getMinHeight(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.MIN_HEIGHT), viewport); }
Example 18
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getHeight(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.HEIGHT), viewport); }
Example 19
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getMaxWidth(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.MAX_WIDTH), viewport); }
Example 20
Source File: WXStyle.java From ucar-weex-core with Apache License 2.0 | 4 votes |
public float getMinWidth(int viewport) { return WXUtils.getFloatByViewport(get(Constants.Name.MIN_WIDTH), viewport); }