CSC 349: The Week beginning Jan. 27 |
when
(which is like
a switch
statement).
when
code above with some string methods
that convert a name like "Border Collie" to "border_collie" which is the corresponding drawable resource name.
strings.xml
file. When the dog is selected from the Spinner, its corresponding picture
is displayed in am ImageView and its corresponding colors displayed in a TextView.