Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 Copyright (C) 2012 The Android Open Source Project
      4 
      5 Licensed under the Apache License, Version 2.0 (the "License");
      6 you may not use this file except in compliance with the License.
      7 You may obtain a copy of the License at
      8 
      9      http://www.apache.org/licenses/LICENSE-2.0
     10 
     11 Unless required by applicable law or agreed to in writing, software
     12 distributed under the License is distributed on an "AS IS" BASIS,
     13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14 See the License for the specific language governing permissions and
     15 limitations 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_green"
     22     android:padding="8dip"
     23     >
     24     <TextView android:layout_width="match_parent"
     25         android:layout_height="wrap_content"
     26         android:text="@string/activity_b_label"
     27         android:gravity="center_horizontal"
     28         android:textSize="@dimen/font_large"
     29         android:textColor="@color/light_green"
     30         android:paddingBottom="16dip"
     31         />
     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_a"
     42                 android:layout_height="wrap_content"
     43                 android:layout_width="wrap_content"
     44                 android:text="@string/btn_start_a_label"
     45                 android:onClick="startActivityA"
     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_a"
     54                 android:onClick="startActivityC"
     55                 />
     56 
     57         <Button
     58                 android:id="@+id/btn_finish_b"
     59                 android:layout_height="wrap_content"
     60                 android:layout_width="wrap_content"
     61                 android:text="@string/btn_finish_b_label"
     62                 android:layout_toRightOf="@id/btn_start_c"
     63                 android:onClick="finishActivityB"
     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_b"
     72                 android:onClick="startDialog"
     73                 />
     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_green"
     85         />
     86 
     87     <ScrollView
     88          android:layout_width="match_parent"
     89          android:layout_height="160dp">
     90         <TextView
     91             android:id="@+id/status_view_b"
     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_green"
    107         />
    108 
    109     <TextView
    110         android:id="@+id/status_view_all_b"
    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