Android Custom List Dialog
问题 Could someone point out a working example of a custom dialog that takes an ArrayAdapter as input and shows a selectable list. I have tried to create a Dialog using an AlertDialog Builder as such... final ArrayAdapter<MyObject> myAdapter = getMyobjects(); final AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle("Pick an item").setAdapter(myAdapter, new android.content.DialogInterface.OnClickListener() { public void onClick(final DialogInterface dialog, final int item) { Toast