public final BuilderType setItems(@ArrayRes final int resourceId,
                                      @Nullable final DialogInterface.OnClickListener listener) {
        getProduct().setItems(resourceId, listener);
        return self();
    }
public final BuilderType setItems ( @ ArrayRes final int resourceId , @ Nullable final DialogInterface . OnClickListener listener ) { getProduct ( ) . setItems ( resourceId , listener ) ; return self ( ) ; }
Sets the items, which should be shown by the dialog, which is created by the builder.
<p>
Note, that the attached listener is not stored using a dialog's
<code>onSaveInstanceState</code>-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.

@param resourceId
The resource id of the items, which should be set, as an {@link Integer} value. The
resource id must correspond to a valid array resource
@param listener
The listener, which should be notified, when an item is clicked, as an instance of
the type {@link DialogInterface.OnClickListener} or null, if no listener should be
notified
@return The builder, the method has been called upon, as an instance of the generic type
BuilderType