Create a list in a dialog

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Create a list in a dialog

Postby BGH » Fri May 29, 2009 1:19 am

I want to create a list inside a popup dialog in a similar fashion to when you create a ListPreference when setting up preferences.

How would I go about doing this without using preferences?
User avatar
BGH
Junior Developer
Junior Developer
 
Posts: 23
Joined: Thu Feb 12, 2009 3:51 am
Location: Melbourne, Australia

Top

.setAdapter

Postby iPaul Pro » Sun May 31, 2009 1:04 pm

Did you try .setAdapter?

public AlertDialog.Builder setAdapter (ListAdapter adapter, DialogInterface.OnClickListener listener)

Reference Page
iPaul Pro
Developer
Developer
 
Posts: 33
Joined: Sun Mar 15, 2009 9:01 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests