Source

android-activity-lifecycle / res / layout / main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:orientation="vertical" android:layout_width="fill_parent"
	android:layout_height="fill_parent">
	<TextView android:layout_width="fill_parent"
		android:layout_height="wrap_content" android:layout_margin="5dp"
		android:text="@string/a_label" />
	<Button android:layout_width="match_parent"
		android:layout_height="wrap_content" android:text="@string/launch_b_button"
		android:id="@+id/launch_b_button"></Button>
	<TextView android:layout_height="wrap_content" android:text="@string/counter"
		android:layout_margin="5dp" android:layout_width="match_parent"
		android:id="@+id/counter_value" />
	<LinearLayout android:layout_width="match_parent"
		android:layout_height="wrap_content" android:id="@+id/linearLayout1">
		<Button android:text="+" android:layout_height="wrap_content"
			android:id="@+id/incButton" android:layout_weight="1"
			android:layout_width="fill_parent" />
		<Button android:layout_width="fill_parent" android:id="@+id/decButton"
			android:layout_height="wrap_content" android:text="-"
			android:layout_weight="1" />
	</LinearLayout>
	<Button android:layout_width="match_parent"
		android:layout_height="wrap_content" android:text="Show Dialog"
		android:id="@+id/dialogButton" />
</LinearLayout>