public class SelectDialog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SelectDialog.SelectDialogListener
Listener for option selected in select picker
|
Modifier and Type | Method and Description |
---|---|
int |
getSelectedOptionIndex()
Getter
|
boolean |
isShowing()
Getter
|
static SelectDialog |
newInstance(int title,
java.lang.String[] options,
int selectedOptionIndex)
Allows to create a new instance of the dialog
|
void |
onCreate(Bundle savedInstanceState) |
Dialog |
onCreateDialog(Bundle savedInstanceState) |
void |
setSelectDialogListener(SelectDialog.SelectDialogListener listener)
Setter
|
void |
setSelectedOptionIndex(int position)
Setter
|
public static SelectDialog newInstance(int title, java.lang.String[] options, int selectedOptionIndex)
title
- the dialog titleoptions
- the dialog optionsselectedOptionIndex
- the first selected optionpublic void onCreate(Bundle savedInstanceState)
@NonNull public Dialog onCreateDialog(Bundle savedInstanceState)
public int getSelectedOptionIndex()
public void setSelectDialogListener(SelectDialog.SelectDialogListener listener)
listener
- the listener for the select dialogpublic void setSelectedOptionIndex(int position)
position
- the new selected positionpublic boolean isShowing()