Time for action - asking a question
In order to ask our user a question, you will need to add a
TextView to the top of your layout. A
TextView is a bit like a
JLabel. It's also the base class for many other Android
View widgets that display text. We want it to take up all of the available horizontal space, but only enough vertical space for our question to fit. We populate the
TextView with Please wait... as its default text. Later, on we will replace this with a dynamically selected question.
- Go back to your
- Between the
<TextView />element, ending it with the empty element
/>syntax since elements representing
Viewobjects are not allowed to have child elements.
- Give the