Costum ListView?

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

Costum ListView?

Postby chaoz1336 » Tue Aug 25, 2009 9:48 am

Hi Guys,

afaik its not a huge prob to make a costum listview...

but is there any way to exchange a ScrollView by a listview?

cause atm I have a working layout with a tablelayout in a listview, using it generic...

but now I want to use a Listview instead without changing everything?

Does anyone have an idea?

Is there a simple codeExample of how to use a ListView in an existing Layout? (Without ListActivity!) ?

thx a lot in advance!
chaoz1336
Experienced Developer
Experienced Developer
 
Posts: 90
Joined: Wed Dec 10, 2008 5:19 pm

Top

Postby arams » Tue Aug 25, 2009 10:24 am

ArrayAdapter adap=new ArrayAdapter(context,android.R.layout.simple_list_item_1,String[] listelement);

lView.SetAdapter(adap);
arams
Experienced Developer
Experienced Developer
 
Posts: 89
Joined: Fri May 08, 2009 7:45 am

Postby chaoz1336 » Tue Aug 25, 2009 11:52 am

thx for the very fast reply arams, :D:D:D
but could u please get more detailed,
maybe with an working example?

that would be very very great =)

(espeacily wethr or how I can swap a srollview by a listview)
chaoz1336
Experienced Developer
Experienced Developer
 
Posts: 90
Joined: Wed Dec 10, 2008 5:19 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests