|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
ASTRID: Android's Simple Task Recording Dashboard
|
|
|
|
|
|
|
|
Copyright (c) 2009 Tim Su
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
-->
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/scroll_view"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent">
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/view_layout"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent">
|
|
|
|
|
|
|
|
<TextView android:id="@+id/name"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLargeInverse"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:padding="5dip"/>
|
|
|
|
|
|
|
|
<!-- Button Row -->
|
|
|
|
<LinearLayout android:id="@+id/button_layout"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="15dip">
|
|
|
|
|
|
|
|
<Button android:id="@+id/timerButton"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/startTimer_label"/>
|
|
|
|
|
|
|
|
<Button android:id="@+id/progress"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- Elapsed Time -->
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5px"
|
|
|
|
android:text="@string/taskView_elapsed"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<TextView android:id="@+id/cell_elapsed"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:colorForeground="@color/view_table_values" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- Estimated Time -->
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5px"
|
|
|
|
android:src="@android:drawable/divider_horizontal_bright" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:text="@string/taskView_estimated"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<TextView android:id="@+id/cell_estimated"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:colorForeground="@color/view_table_values" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- Absolute Deadline -->
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5px"
|
|
|
|
android:src="@android:drawable/divider_horizontal_bright" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:text="@string/taskView_definiteDueDate"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<TextView android:id="@+id/cell_definiteDueDate"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:colorForeground="@color/view_table_values" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- Goal Deadline -->
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5px"
|
|
|
|
android:src="@android:drawable/divider_horizontal_bright" />
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:text="@string/taskView_preferredDueDate"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<TextView android:id="@+id/cell_preferredDueDate"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:colorForeground="@color/view_table_values" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<!-- Notes -->
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5px"
|
|
|
|
android:src="@android:drawable/divider_horizontal_bright" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:text="@string/taskView_notes"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/cell_notes"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="5px"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:colorForeground="@color/view_table_values" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="5px" />
|
|
|
|
|
|
|
|
<Button android:id="@+id/edit"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/edit_label"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|