Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.