I did everything exactly as the book states and my preview of the app does not match what is on page 16. I’m not sure what I am doing wrong but below is my code:
activity_quiz.xml:
<?xml version="1.0" encoding="utf-8"?>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="24dp"
android:text="@string/question_text"/>
<linearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/false_button" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/true_button"/>
</linearLayout>
Then my strings.xml file is:
GeoQuiz
Camberra is the capital of Australia.
True
False
I also attached a screenshot of what my preview looks like as you can see it is not matching page 16’s preview. What am I doing wrong?