Code example for AlertDialog.Builder

Methods: setItems

0
     * selected item via the supplied listener. 
     * 
     * @return This Builder object to allow for chaining of calls to set methods 
     */ 
    public AlertDialogBuilderWrapper setItems(CharSequence[] items, final OnClickListener listener) {
        builder.setItems(items, listener);
        return this;
    } 
     
    /** 
     * Set a list of items, which are supplied by the given {@link ListAdapter}, to be 
     * displayed in the dialog as the content, you will be notified of the 
     * selected item via the supplied listener. 
     *  
     * @param adapter The {@link ListAdapter} to supply the list of items 
     * @param listener The listener that will be called when an item is clicked. 
     * 
     * @return This Builder object to allow for chaining of calls to set methods 
     */ 
    public AlertDialogBuilderWrapper setAdapter(final ListAdapter adapter, final OnClickListener listener) {
Experience pair programming with AI  Get Codota for Java