Assignment 5C: Vocabulary List (Version C)

Assignment 5C — vocabulary app version 3 is an extension of the previous version of the app.

Instead of scanning the_words — the file in the previous version — this build scans a file named words_and_defs. Rather than simply providing a list of words, words_and_defs includes a vocabulary word, followed by their lexical category (noun, verb, etc), and finally the definition of the word.

This build also uses a Word object to represent each word element. Each Word has a lexeme and definition variable. These variables are read in Item.java, the class associated with activity_item, which is what displays the large-font word + definition.

This is what the application looks like on startup.


Selecting a word from the list displays that word, as well as its lexical category and definition, in a large font. Selecting the Back button will return the user to the vocabulary list.


After the user selects Back and the program has been sent back to the word list, a Toast will be displayed, confirming that the definition of the selected word was successfully displayed.



Assignment Page