gothion
gothion

Reputation: 125

How do I make the alert dialog to display all the items of a listview when it only has a few items?

I have created a dialog and got a problem that only part of the items in the list can be displayed in the layout. The others can only be seen after scrolling the listview and the below images are the effect when the dialog is shown.

The dialog is an alert dialog, and I create it by using the alert.builder, and the layout of this is LinearLayout. Any ideas?

Upvotes: 2

Views: 138

Answers (1)

Santosh
Santosh

Reputation: 611

You can create another class that extends dialog and overrides the method onstart(). There you can do your stuff....and this is not affected your main activity.

Upvotes: 2

Related Questions