I’m making my android application. And I want to have something like this situation:every time when I click on a button, there appears a list with some choices? How can I do this type of list?
I’m making my android application. And I want to have something like this situation:every
Share
Refer this example:
http://android-er.blogspot.com/2012/03/example-of-using-popupmenu.html
Hope the below code also help you to get some idea
new AlertDialog.Builder(this)
.setMultiChoiceItems(R.array.select_dialog_items,
new boolean[]{false, true, false, true, false, false, false},
new DialogInterface.OnMultiChoiceClickListener() {
public void onClick(DialogInterface dialog, int whichButton,
boolean isChecked) {