Time for action - adding more buttons
We have two additional buttons to add to the screen layout. One will allow the user to skip the current question; the other will allow them to look at the short list of meals that we have filtered through so far (based on the questions they have already answered).
- Start by creating an empty
<Button />element below our answers
ViewGroup <LinearLayout />(but still within the root
LinearLayoutelement). Assign it the ID
skip, so that we can reference it in Java:
- Create some padding between the answers and the new button by using a margin:
- Give it the display label Skip Question:
- Like all of the previous widgets, the width should ...