Skip to main content

Posts

Showing posts with the label listactivity

ListView using ListActivity

List View example in android/ program to create listview,simple listview/Listview using list activity/listview  tutorials The display of elements in a list is a very common pattern in mobile applications. The user gets a list of items and can scroll through them. If he selects one item this usually triggers something else. ListView   is one of Android's most widely used widgets. It is capable of displaying a scrollable list of items. These items can be of any type. The data to the ListView will be provided by ListAdapter To add ListView to any activity, we have to include < ListView > tag to the activity’s layout xml. The Activity class that uses ListView should implement the ListActivity instead of plain  Activity class. ListView using ListActivity 1.       Create your activity class by extending ListActivity instead of extending Activity public class HelloListactivityActivity extends ListActivity { 2.     ...