Source

AsyncTaskTemplate / res / layout / activity_main.xml

Full commit
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >

    <Button
        android:id="@+id/button_restarting_async"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="23dp"
        android:text="@string/restarting_asynctask"
        android:onClick="startRestartingAsyncActivity" />

    <Button
        android:id="@+id/button_retained_async"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/button_restarting_async"
        android:text="@string/retained_asynctask" 
        android:onClick="startRetainedAsyncActivity"/>

</RelativeLayout>