Code example for LinearLayout

Methods: addViewgetChildCount

0
    /** 
     * Adds a new {@link Action}. 
     * @param action the action to add 
     */ 
    public void addAction(Action action) {
        final int index = mActionsView.getChildCount();
        addAction(action, index);
    } 
 
    /** 
     * Adds a new {@link Action} at the specified index. 
     * @param action the action to add 
     * @param index the position at which to add the action 
     */ 
    public void addAction(Action action, int index) {
        mActionsView.addView(inflateAction(action), index);
    } 
 
    /** 
     * Removes all action views from this action bar 
     */