Presentation is loading. Please wait.

Presentation is loading. Please wait.

Android ListView Demo.

Similar presentations


Presentation on theme: "Android ListView Demo."— Presentation transcript:

1 Android ListView Demo

2 Under the Composite palette drag a ListView onto the activity, give it an id

3 Right click on res/layout choose New/Other (or XML if it is there)

4 Choose Android/Android XML File (not just XML file) and click Next

5 Give the file a name – remember the file name convention small letters numbers underscores and periods. Choose a Root Element. Click Finish.

6 Resulting XML in Graphical Layout view and xml view

7 Code for String array, ArrayAdapter, and ListView

8 Result so far in emulator. Note that the list items are clickable

9 Code for the OnItemClickListener

10 Result


Download ppt "Android ListView Demo."

Similar presentations


Ads by Google