Code example for View

Methods: getMeasuredWidth, measure

0
    } 
 
    public void dismissPopupMenus() { 
        if (mActionMenuPresenter != null) {
            mActionMenuPresenter.dismissPopupMenus();
        } 
    } 
 
    protected int measureChildView(View child, int availableWidth, int childSpecHeight,
            int spacing) {
        child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST),
                childSpecHeight);
 
        availableWidth -= child.getMeasuredWidth();
        availableWidth -= spacing;
 
        return Math.max(0, availableWidth);
    } 
 
    static protected int next(int x, int val, boolean isRtl) {
        return isRtl ? x - val : x + val;