234 CHAPTER 7: Making Apps Interactive: Intents, Event Handling, and Menus
Figure 7-16. Use the left-facing chevron to bring up a child tag pop-up helper dialog and find, select, and double-click EditText
classes and many of the popular widget classes, resolution density assets, the popular Android
Drawable classes, how to use alternate UI layout folders, styles, themes, UI graphics, UI animation,
UI audio, and so on.
Using Editable Text Fields: The EditText Widget
To be able to enter a text value in a user interface design, you will need to use an
widget. As you know, the work process to find this widget is to add a new line under the opening
dialog which is shown in Figure 7-16. Find and then select and double-click to insert the EditText
(class) child tag inside of your
edit_colony and a layout_margin value of 8DIP using this markup:
After we add the
We are going to add the Button UI element to this UI design so that when your user enters their new
value into the EditText field, they can click an OK button when they are done making their entry, to
tell your Java program logic that it is OK to now take that value and to update the corresponding
Galaxy object data field (value) with that new numeric data value.