Source

android-dream-tutorial / res / layout / dream_settings.xml

Full commit
<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:gravity="center_horizontal" >

        <TextView
            android:id="@+id/config_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/toggle_animation"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <ToggleButton
            android:id="@+id/toggle_animate_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:checked="true"
            android:minHeight="32dp"
            android:minWidth="32dp" />

    </LinearLayout>