1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2009 Felix Bechstein
6 This file is part of TravelLog. This program is free software; you can
7 redistribute it and/or modify it under the terms of the GNU General
8 Public License as published by the Free Software Foundation; either
9 version 3 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details. You should have received a
16 copy of the GNU General Public License along with this program; If
17 not, see <http://www.gnu.org/licenses/>.
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:app="http://schemas.android.com/apk/res/de.ub0r.android.travelLog"
21 android:orientation="vertical" android:layout_width="fill_parent"
22 android:layout_height="fill_parent">
23 <!-- Place an AdMob ad at the bottom of the screen. -->
24 <!-- It has white text on a black background. -->
25 <!-- The description of the surrounding context is 'Android game'. -->
26 <com.admob.android.ads.AdView android:id="@+id/ad"
27 android:visibility="gone" android:layout_width="fill_parent"
28 android:layout_height="wrap_content"
29 app:keywords="android mobile handy cellphone google htc market app report business travel trip" />
30 <LinearLayout android:layout_width="fill_parent"
31 android:layout_height="wrap_content" android:layout_weight="0">
32 <Button android:text="@string/start_work" android:id="@+id/start_work_"
33 android:layout_width="fill_parent" android:layout_height="wrap_content"
34 android:layout_weight="1" />
35 <Button android:text="@string/stop_work" android:id="@+id/stop_work_"
36 android:layout_width="fill_parent" android:layout_height="wrap_content"
37 android:layout_weight="1" />
38 <Button android:text="@string/start_travel" android:id="@+id/start_travel_"
39 android:layout_width="fill_parent" android:layout_height="wrap_content"
40 android:layout_weight="1" />
41 <Button android:text="@string/stop_travel" android:id="@+id/stop_travel_"
42 android:layout_width="fill_parent" android:layout_height="wrap_content"
43 android:layout_weight="1" />
44 <Button android:text="@string/start_pause" android:id="@+id/start_pause_"
45 android:layout_width="fill_parent" android:layout_height="wrap_content"
46 android:layout_weight="1" />
47 <Button android:text="@string/stop_pause" android:id="@+id/stop_pause_"
48 android:layout_width="fill_parent" android:layout_height="wrap_content"
49 android:layout_weight="1" />
51 <ListView android:id="@+id/log" android:layout_width="fill_parent"
52 android:layout_height="wrap_content" android:layout_weight="1" />
53 <LinearLayout android:layout_width="fill_parent"
54 android:layout_height="wrap_content">
55 <Button android:text="@string/add_row" android:id="@+id/add_row_"
56 android:layout_width="wrap_content" android:layout_height="wrap_content"
57 android:layout_weight="1" />
58 <Button android:text="@string/clear_" android:id="@+id/clear_"
59 android:layout_width="wrap_content" android:layout_height="wrap_content"
60 android:layout_weight="1" />