Dialog.setDefaultResponse

Sets the last widget in the dialog's action area with the given response_id as the default widget for the dialog. Pressing "Enter" normally activates the default widget.

class Dialog
void
setDefaultResponse

Parameters

responseId int

a response ID

Meta