main.xml

← Back

The file containing the source code shown below is located in the corresponding directory in <sdk>/samples/android-<version>/...

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="match_parent"
	android:layout_height="match_parent">
	<com.example.android.jetboy.JetBoyView android:id="@+id/JetBoyView"
		android:layout_width="match_parent"
		android:layout_height="match_parent" />
	<TextView android:id="@+id/text" android:text="@string/helpText"
		style="@style/helpText" android:visibility="invisible" 
		android:layout_width="300px" android:layout_height="300px"
		android:background="#7Fffffff" android:layout_gravity="center" />
	<Button android:id="@+id/Button01" android:text="@string/start"
		style="@style/ButtonText" android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_gravity="center_horizontal|bottom" />
	<Button android:id="@+id/Button02" android:text="@string/retry"
		style="@style/ButtonText" android:visibility="invisible"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_gravity="center_horizontal|bottom" />
	<TextView android:id="@+id/timer" android:text="@string/timer"
		style="@style/timerText" android:visibility="invisible"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_gravity="top|right" android:background="#000000" />
</FrameLayout>