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_blue" 22 android:padding="8dip" 23 > 24 25 <TextView android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:text="@string/activity_a" 28 android:gravity="center_horizontal" 29 android:textSize="@dimen/font_large" 30 android:textColor="@color/light_blue" 31 android:paddingBottom="16dip" 32 /> 33 34 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 35 android:orientation="vertical" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_gravity="center_horizontal" 39 > 40 <Button 41 android:id="@+id/btn_start_b" 42 android:layout_height="wrap_content" 43 android:layout_width="wrap_content" 44 android:text="@string/btn_start_b_label" 45 android:onClick="startActivityB" 46 /> 47 48 <Button 49 android:id="@+id/btn_start_c" 50 android:layout_height="wrap_content" 51 android:layout_width="wrap_content" 52 android:text="@string/btn_start_c_label" 53 android:layout_toRightOf="@id/btn_start_b" 54 android:onClick="startActivityC" 55 /> 56 57 <Button 58 android:id="@+id/btn_finish_a" 59 android:layout_height="wrap_content" 60 android:layout_width="wrap_content" 61 android:text="@string/btn_finish_a_label" 62 android:layout_toRightOf="@id/btn_start_c" 63 android:onClick="finishActivityA" 64 /> 65 66 <Button 67 android:id="@+id/btn_start_dialog" 68 android:layout_height="wrap_content" 69 android:layout_width="wrap_content" 70 android:text="@string/btn_start_dialog_label" 71 android:layout_toRightOf="@id/btn_finish_a" 72 android:onClick="startDialog" 73 /> 74 75 </RelativeLayout> 76 77 <TextView 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:textSize="@dimen/font_medium" 81 android:text="@string/lifecycle_method_list" 82 android:textColor="@color/light_blue" 83 /> 84 85 <ScrollView 86 android:layout_width="match_parent" 87 android:layout_height="160dp"> 88 <TextView 89 android:id="@+id/status_view_a" 90 android:layout_width="match_parent" 91 android:layout_height="match_parent" 92 android:background="@color/white" 93 android:textColor="@color/black" 94 android:padding="4dip" 95 android:typeface="monospace" 96 /> 97 </ScrollView> 98 99 <TextView 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:textSize="@dimen/font_medium" 103 android:text="@string/activity_status" 104 android:textColor="@color/light_blue" 105 /> 106 107 <TextView 108 android:id="@+id/status_view_all_a" 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:background="@color/white" 112 android:textColor="@color/black" 113 android:padding="4dip" 114 android:typeface="monospace" 115 /> 116</LinearLayout> 117 118