1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:id="@+id/root_launch" 4 android:layout_width="match_parent" 5 android:layout_height="wrap_content" 6 android:orientation="vertical" 7 android:paddingBottom="@dimen/activity_vertical_margin" 8 android:paddingLeft="@dimen/activity_horizontal_margin" 9 android:paddingRight="@dimen/activity_horizontal_margin" 10 android:paddingTop="@dimen/activity_vertical_margin" 11 tools:context="com.google.android.example.locktasktests.MainActivity" > 12 <Button 13 android:id="@+id/button_default" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:layout_marginTop="16dp" 17 android:onClick="onButtonPressed" 18 android:text="@string/launch_default" /> 19 <Button 20 android:id="@+id/button_never" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:layout_marginTop="16dp" 24 android:onClick="onButtonPressed" 25 android:text="@string/launch_never" /> 26 <Button 27 android:id="@+id/button_whitelist" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:layout_marginTop="16dp" 31 android:onClick="onButtonPressed" 32 android:text="@string/launch_whitelist" /> 33 <Button 34 android:id="@+id/button_always" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_marginTop="16dp" 38 android:onClick="onButtonPressed" 39 android:text="@string/launch_always" /> 40 <Button 41 android:id="@+id/toast_pinned" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="16dp" 45 android:onClick="onToast" 46 android:text="@string/toast_pinned" /> 47</LinearLayout> 48