There are different ways to implement a list of multiple line items on Android Apps. They can be used for data selection as well as drilldown navigation. ListView is a group that can display our scrollable items. Usually when the user click on a item, some action can be performed.
Our ListDemo will extend ListActivity and use an Android build-in list view, simple_list_item_1 layout. We will not care much in this part for performance or manage huge data, this will be covered on future post, so make sure you subscribe to our feeds. Our example will be an array with some data and make use of ArrayAdapeter(...)
.
featured
Android Tutorial – How to Create Buttons with Listener
In this Android Tutorial series, we will have some fun creating Buttons with listeners. So when we click (touch) a button some message will display or an action will be executed. Make sure you already read the Android Activity part.
Continue reading
Android Tutorial – Create a new Activity
Creating views, bind data to lists, interact with user etc is task that an Activity have to take care. We will have a deeper look to this class. Before continuing you have to install Android Studio, used on this tutorial and create a DemoApp.