- Create a new project with the name VocabularyVa.
- Name your "organization" as oswego.edu
This should result in the package: edu.oswego.vocabularyva
click on the images below to view the assignment
Each image shows that when you click on a persons name, it will display at the bottom their id, position in the list, and their name.
class example
my example
Concepts
-
ListActivity
— an Activity to manage a list of "items"
-
ListView
— a special view group which manages interaction with a data list.
- ArrayAdapter — "adapt" an interface between a data array
and a ListView
- listener — an object with prescribed properties which will
be "manipulated" when events of interest occur.
AdapterView.OnItemClickListener is an example.
- findViewById — "inflate" a View from an XML source.
Previously encountered concepts:
- onCreate — called when this activity is first
created.
- setContentView — "inflate" (a view or tree of views
contained in a layout) to be the View of this activity.