CHAPTER 7: Making Apps Interactive: Intents, Event Handling, and Menus 239
Right-click on the strings.xml file in your /res/values folder, and add five
widget hint text, named hint_colony, hint_pop, hint_fleet, and hint_ships, with the logical hint text
values, as is shown in Figure 7-21.
Now your
android:text parameter to the
android:text="@string/ok_button"
Figure 7-21. Create string constants in the strings.xml file for ok_button, hint_colony, hint_pop, hint_fleet, and hint_ships
Figure 7-22. Reference hint_colony and ok_button string constants via android:hint and android:text parameters