OSDN Git Service

e69e5bd0b0951d08ac92aa3ffa08a2bf8d0d5b97
[tokyorunners/tokyorunners.git] / res / layout / stopwatch.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3         android:background="#696969" android:layout_width="fill_parent"
4         android:layout_height="fill_parent">
5
6         <LinearLayout android:id="@+id/statistics"
7                 android:orientation="vertical" android:layout_width="fill_parent"
8                 android:layout_height="wrap_content" android:paddingLeft="5dp"
9                 android:paddingRight="5dp" android:layout_alignParentTop="true">
10                 <LinearLayout android:orientation="horizontal"
11                         android:layout_width="fill_parent" android:layout_height="wrap_content">
12                         <Chronometer android:id="@+id/elapsed_time"
13                                 android:layout_width="fill_parent" android:layout_height="wrap_content"
14                                 android:textSize="40dp" android:gravity="right" android:textColor="#7CFC00"
15                                 android:layout_weight="1" />
16                         <TextView android:id="@+id/time_separator"
17                                 android:layout_width="wrap_content" android:layout_height="wrap_content"
18                                 android:textColor="#7CFC00" android:text="/" android:textSize="40dp" />
19                         <Chronometer android:id="@+id/lap_time"
20                                 android:layout_width="fill_parent" android:layout_height="wrap_content"
21                                 android:textColor="#7CFC00" android:textSize="40dp" android:gravity="right"
22                                 android:layout_weight="1" />
23                 </LinearLayout>
24
25
26                 <RelativeLayout android:orientation="horizontal"
27                         android:layout_width="fill_parent" android:layout_height="wrap_content">
28                         <TextView android:id="@+id/distance" android:layout_width="wrap_content"
29                                 android:layout_height="wrap_content" android:textColor="#7CFC00"
30                                 android:text="0.0" android:textSize="40dp"
31                                 android:layout_marginLeft="5pt" android:layout_alignParentRight="true" />
32                         <TextView android:text="@string/label_distance"
33                                 android:layout_width="wrap_content" android:layout_height="wrap_content"
34                                 android:textSize="30dp" android:textColor="#7CFC00"
35                                 android:layout_toLeftOf="@id/distance" />
36                 </RelativeLayout>
37
38         </LinearLayout>
39
40         <LinearLayout android:id="@+id/buttons"
41                 android:orientation="horizontal" android:layout_width="fill_parent"
42                 android:layout_height="wrap_content" android:layout_alignParentBottom="true">
43                 <Button android:id="@+id/button_start_stop"
44                         android:layout_width="fill_parent" android:layout_height="wrap_content"
45                         android:layout_weight="1" android:textSize="24dp" android:textColor="#4B0082"
46                         android:text="@string/button_start" />
47                 <Button android:id="@+id/button_reset_lap"
48                         android:layout_width="fill_parent" android:layout_height="wrap_content"
49                         android:layout_weight="1" android:textColor="#4B0082"
50                         android:textSize="24dp" android:text="@string/button_reset" />
51         </LinearLayout>
52
53
54         <ListView android:id="@+id/lap_history" android:layout_below="@id/statistics"
55                 android:layout_above="@id/buttons" android:layout_alignParentRight="true"
56                 android:layout_height="fill_parent" android:layout_width="fill_parent"
57                 android:paddingLeft="5dp" android:paddingRight="5dp"
58                 android:scrollbarSize="5dp" android:scrollbarStyle="outsideOverlay"
59                 android:choiceMode="none" android:clickable="false" />
60
61
62 </RelativeLayout>
63