Home | History | Annotate | Download | only in app

Lines Matching refs:listener

147      * custom cancel listener.
314 * Set a listener to be invoked when the positive button of the dialog is pressed.
316 * @param whichButton Which button to set the listener on, can be one of
321 * @param listener The {@link DialogInterface.OnClickListener} to use.
323 public void setButton(int whichButton, CharSequence text, OnClickListener listener) {
324 mAlert.setButton(whichButton, text, listener, null);
355 * Set a listener to be invoked when button 1 of the dialog is pressed.
358 * @param listener The {@link DialogInterface.OnClickListener} to use.
364 public void setButton(CharSequence text, final OnClickListener listener) {
365 setButton(BUTTON_POSITIVE, text, listener);
369 * Set a listener to be invoked when button 2 of the dialog is pressed.
371 * @param listener The {@link DialogInterface.OnClickListener} to use.
377 public void setButton2(CharSequence text, final OnClickListener listener) {
378 setButton(BUTTON_NEGATIVE, text, listener);
382 * Set a listener to be invoked when button 3 of the dialog is pressed.
384 * @param listener The {@link DialogInterface.OnClickListener} to use.
390 public void setButton3(CharSequence text, final OnClickListener listener) {
391 setButton(BUTTON_NEUTRAL, text, listener);
605 * Set a listener to be invoked when the positive button of the dialog is pressed.
607 * @param listener The {@link DialogInterface.OnClickListener} to use.
611 public Builder setPositiveButton(@StringRes int textId, final OnClickListener listener) {
613 P.mPositiveButtonListener = listener;
618 * Set a listener to be invoked when the positive button of the dialog is pressed.
620 * @param listener The {@link DialogInterface.OnClickListener} to use.
624 public Builder setPositiveButton(CharSequence text, final OnClickListener listener) {
626 P.mPositiveButtonListener = listener;
631 * Set a listener to be invoked when the negative button of the dialog is pressed.
633 * @param listener The {@link DialogInterface.OnClickListener} to use.
637 public Builder setNegativeButton(@StringRes int textId, final OnClickListener listener) {
639 P.mNegativeButtonListener = listener;
644 * Set a listener to be invoked when the negative button of the dialog is pressed.
646 * @param listener The {@link DialogInterface.OnClickListener} to use.
650 public Builder setNegativeButton(CharSequence text, final OnClickListener listener) {
652 P.mNegativeButtonListener = listener;
657 * Set a listener to be invoked when the neutral button of the dialog is pressed.
659 * @param listener The {@link DialogInterface.OnClickListener} to use.
663 public Builder setNeutralButton(@StringRes int textId, final OnClickListener listener) {
665 P.mNeutralButtonListener = listener;
670 * Set a listener to be invoked when the neutral button of the dialog is pressed.
672 * @param listener The {@link DialogInterface.OnClickListener} to use.
676 public Builder setNeutralButton(CharSequence text, final OnClickListener listener) {
678 P.mNeutralButtonListener = listener;
732 * selected item via the supplied listener. This should be an array type i.e. R.array.foo
736 public Builder setItems(@ArrayRes int itemsId, final OnClickListener listener) {
738 P.mOnClickListener = listener;
744 * selected item via the supplied listener.
748 public Builder setItems(CharSequence[] items, final OnClickListener listener) {
750 P.mOnClickListener = listener;
757 * selected item via the supplied listener.
760 * @param listener The listener that will be called when an item is clicked.
764 public Builder setAdapter(final ListAdapter adapter, final OnClickListener listener) {
766 P.mOnClickListener = listener;
773 * selected item via the supplied listener.
776 * @param listener The listener that will be called when an item is clicked.
782 public Builder setCursor(final Cursor cursor, final OnClickListener listener,
786 P.mOnClickListener = listener;
792 * you will be notified of the selected item via the supplied listener.
802 * @param listener notified when an item on the list is clicked. The dialog will not be
809 final OnMultiChoiceClickListener listener) {
811 P.mOnCheckboxClickListener = listener;
819 * you will be notified of the selected item via the supplied listener.
828 * @param listener notified when an item on the list is clicked. The dialog will not be
835 final OnMultiChoiceClickListener listener) {
837 P.mOnCheckboxClickListener = listener;
845 * you will be notified of the selected item via the supplied listener.
856 * @param listener notified when an item on the list is clicked. The dialog will not be
863 final OnMultiChoiceClickListener listener) {
865 P.mOnCheckboxClickListener = listener;
874 * the selected item via the supplied listener. This should be an array type i.e.
881 * @param listener notified when an item on the list is clicked. The dialog will not be
888 final OnClickListener listener) {
890 P.mOnClickListener = listener;
898 * the selected item via the supplied listener. The list will have a check mark displayed to
906 * @param listener notified when an item on the list is clicked. The dialog will not be
913 final OnClickListener listener) {
915 P.mOnClickListener = listener;
924 * the selected item via the supplied listener. The list will have a check mark displayed to
930 * @param listener notified when an item on the list is clicked. The dialog will not be
936 public Builder setSingleChoiceItems(CharSequence[] items, int checkedItem, final OnClickListener listener) {
938 P.mOnClickListener = listener;
946 * the selected item via the supplied listener. The list will have a check mark displayed to
952 * @param listener notified when an item on the list is clicked. The dialog will not be
958 public Builder setSingleChoiceItems(ListAdapter adapter, int checkedItem, final OnClickListener listener) {
960 P.mOnClickListener = listener;
967 * Sets a listener to be invoked when an item in the list is selected.
969 * @param listener the listener to be invoked
973 public Builder setOnItemSelectedListener(final AdapterView.OnItemSelectedListener listener) {
974 P.mOnItemSelectedListener = listener;