android之Button

AlertDialog.Builder警告对话框类

1)setpositiveButton 确定
Set a listener to be invoked when the positive button of the dialog is pressed.

2)setNeutralButton 中间
Set a listener to be invoked when the neutral button of the dialog is pressed.

3)setNegativeButton 取消

Set a listener to be invoked when the negative button of the dialog is pressed.

4)setItems列表框
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

5)setSingleChoiceItems单项选择列表框
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.


你可能感兴趣的:(android,list,dialog,button)