Java Code Examples for com.zhy.autolayout.utils.AutoUtils#getPercentWidthSizeBigger()

The following examples show how to use com.zhy.autolayout.utils.AutoUtils#getPercentWidthSizeBigger() . 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: MetroLayout.java    From AutoLayout with Apache License 2.0 5 votes vote down vote up
public MetroLayout(Context context, AttributeSet attrs)
{
    super(context, attrs);
    TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MetroLayout);
    mDivider = a.getDimensionPixelOffset(R.styleable.MetroLayout_metro_divider, 0);
    mDivider = AutoUtils.getPercentWidthSizeBigger(mDivider);
    a.recycle();

}
 
Example 2
Source File: MetroLayout.java    From AndroidAutoLayout with Apache License 2.0 5 votes vote down vote up
public MetroLayout(Context context, AttributeSet attrs)
{
    super(context, attrs);
    TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MetroLayout);
    mDivider = a.getDimensionPixelOffset(R.styleable.MetroLayout_metro_divider, 0);
    mDivider = AutoUtils.getPercentWidthSizeBigger(mDivider);
    a.recycle();

}
 
Example 3
Source File: AutoAttr.java    From AutoLayout with Apache License 2.0 4 votes vote down vote up
protected int getPercentWidthSize()
{
    return AutoUtils.getPercentWidthSizeBigger(pxVal);
}
 
Example 4
Source File: AutoAttr.java    From AndroidAutoLayout with Apache License 2.0 4 votes vote down vote up
protected int getPercentWidthSize()
{
    return AutoUtils.getPercentWidthSizeBigger(pxVal);
}