Will Schell's ISC 250 Programming Through Mobile App Development
Assignment 3B
The assignment:
In version B of "vocabulary of things" you will
replace the array of names with an ArrayList of Java objects.
Each object will have
- a name
- a URL of a site with information about that object
click on the images below to view the assignment
Each image shows that when you click on a persons name, it will display the characters's wikipedia page as well as what it did in VocabularyVa(previous assignment.
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.