A (175)

(Tuis.) #1

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 UI
widget. As you know, the work process to find this widget is to add a new line under the opening


tag and use the left-facing chevron < character to bring up the UI widget helper
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 parent tag. Add an ID naming the EditText object
edit_colony and a layout_margin value of 8DIP using this markup:

After we add the

Free download pdf