Code example for ArrayList

Methods: clear, isEmpty

0
 
    /** 
     * Removes all {@link QuickAction} from this {@link QuickActionWidget}. 
     */ 
    public void clearAllQuickActions() { 
        if (!mQuickActions.isEmpty()) {
            mQuickActions.clear();
            mIsDirty = true;
        } 
    } 
 
    /** 
     * Call that method to display the {@link QuickActionWidget} anchored to the 
     * given view. 
     *  
     * @param anchor The view the {@link QuickActionWidget} will be anchored to. 
     */ 
    public void show(View anchor) {
 
        final View contentView = getContentView();