Question

How to make a custom AlertDialog in listView format and each listItem must contain a image and textview.

There is a intent passing on clicking of individual listItem.

How to do this.?

Was it helpful?

Solution

final Dialog innerDialog = new Dialog(context);
innerDialog.setTitle("Title");
innerDialog.setContentView(R.layout.alert);

Add custom list to alert Layout and you can find views by innerDialog.findViewById()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top