is it possible to create listview inside dialog?

android, dialog, listview

Solution

You don't really have to extend `listActivity` in order to use listviews.

Extending `listActivity` will give you some functionality for free, such as `getListView()` (if I recall the method name correctly), but that can just as well be done manually with `findViewById()` just as any other view.

Problem

i have created a custom dialog class ``` public class NewPost extends Dialog { // functionality } ``` now my requirement is to create listview inside it. i know we can create textboxes,buttons,dropdown list inside it. but in order to create list view we should inherit our class from listActivity class what you suggest is it possible or not if yes then how to achieve this using any interface or what?

Original source

Related problems