1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3Copyright (C) 2012 The Android Open Source Project 4 5Licensed under the Apache License, Version 2.0 (the "License"); 6you may not use this file except in compliance with the License. 7You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11Unless required by applicable law or agreed to in writing, software 12distributed under the License is distributed on an "AS IS" BASIS, 13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14See the License for the specific language governing permissions and 15limitations under the License. 16--> 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:background="@color/dark_red" 22 android:padding="8dip" 23 > 24<TextView 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:text="@string/activity_c_label" 28 android:gravity="center_horizontal" 29 android:textSize="@dimen/font_large" 30 android:textColor="@color/light_red" 31 android:paddingBottom="16dip" 32 /> 33 34 35<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 36 android:orientation="vertical" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_gravity="center_horizontal" 40 > 41 <Button 42 android:id="@+id/btn_start_a" 43 android:layout_height="wrap_content" 44 android:layout_width="wrap_content" 45 android:text="@string/btn_start_a_label" 46 android:onClick="startActivityA" 47 /> 48 49 <Button 50 android:id="@+id/btn_start_b" 51 android:layout_height="wrap_content" 52 android:layout_width="wrap_content" 53 android:text="@string/btn_start_b_label" 54 android:layout_toRightOf="@id/btn_start_a" 55 android:onClick="startActivityB" 56 /> 57 58 <Button 59 android:id="@+id/btn_finish_c" 60 android:layout_height="wrap_content" 61 android:layout_width="wrap_content" 62 android:text="@string/btn_finish_c_label" 63 android:layout_toRightOf="@id/btn_start_b" 64 android:onClick="finishActivityC" 65 /> 66 67 <Button 68 android:id="@+id/btn_start_dialog" 69 android:layout_height="wrap_content" 70 android:layout_width="wrap_content" 71 android:text="@string/btn_start_dialog_label" 72 android:layout_toRightOf="@id/btn_finish_c" 73 android:onClick="startDialog" 74 /> 75 76</RelativeLayout> 77 78 79<TextView 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:textSize="@dimen/font_medium" 83 android:text="@string/lifecycle_method_list" 84 android:textColor="@color/light_red" 85 /> 86 87<ScrollView 88 android:layout_width="match_parent" 89 android:layout_height="160dp"> 90 <TextView 91 android:id="@+id/status_view_c" 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:background="@color/white" 95 android:textColor="@color/black" 96 android:padding="4dip" 97 android:typeface="monospace" 98 /> 99</ScrollView> 100 101<TextView 102 android:layout_width="match_parent" 103 android:layout_height="wrap_content" 104 android:textSize="@dimen/font_medium" 105 android:text="@string/activity_status" 106 android:textColor="@color/light_red" 107 /> 108 109<TextView 110 android:id="@+id/status_view_all_c" 111 android:layout_width="match_parent" 112 android:layout_height="wrap_content" 113 android:background="@color/white" 114 android:textColor="@color/black" 115 android:padding="4dip" 116 android:typeface="monospace" 117 /> 118</LinearLayout> 119 120