Is it possible to implement ListView without any layout XML?

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

Is it possible to implement ListView without any layout XML?

Postby suresh » Sun May 31, 2009 8:49 am

Hello all,

Is it possible to implement ListView without using any XML layout? Any hint would be useful.

Regards
Suresh
Learning android
suresh
Freshman
Freshman
 
Posts: 3
Joined: Fri Apr 24, 2009 7:35 am
Location: Nepal

Top

Postby iPaul Pro » Sun May 31, 2009 12:56 pm

Yes there is. It involves using "android.R.layout.simple_list_item_1". The most common usage is within a SimpleCursorAdapter. Refer to this thread for an example.
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 9 guests