From 267d7d16f491883090a5f51628dc65d8dd7497ef Mon Sep 17 00:00:00 2001 From: Andrew Shaw Date: Tue, 17 Jan 2012 17:35:11 -0800 Subject: [PATCH] New ui for task edit activity --- astrid/.classpath | 1 - astrid/.project | 7 - astrid/AndroidManifest.xml | 2 - astrid/antlib/debug.keystore | Bin 1266 -> 1268 bytes .../astrid/actfm/EditPeopleControlSet.java | 7 +- .../todoroo/astrid/gcal/GCalControlSet.java | 2 +- .../astrid/notes/EditNoteActivity.java | 225 ++++--- .../producteev/ProducteevControlSet.java | 1 + .../astrid/repeats/RepeatControlSet.java | 31 +- .../todoroo/astrid/tags/TagsControlSet.java | 3 +- .../astrid/timers/TimerControlSet.java | 1 + .../custom_tab_indicator_focused.9.png | Bin 0 -> 220 bytes .../custom_tab_indicator_selected.9.png | Bin 0 -> 178 bytes ...ustom_tab_indicator_selected_focused.9.png | Bin 0 -> 2836 bytes ...ustom_tab_indicator_selected_pressed.9.png | Bin 0 -> 2836 bytes .../custom_tab_indicator_unselected.9.png | Bin 0 -> 183 bytes ...tom_tab_indicator_unselected_focused.9.png | Bin 0 -> 2834 bytes ...tom_tab_indicator_unselected_pressed.9.png | Bin 0 -> 2834 bytes astrid/res/drawable/custom_tab_indicator.xml | 34 + astrid/res/drawable/edit_title_background.xml | 17 +- astrid/res/drawable/importance_title_1.xml | 8 - astrid/res/drawable/importance_title_2.xml | 8 - astrid/res/drawable/importance_title_3.xml | 8 - astrid/res/drawable/importance_title_4.xml | 8 - astrid/res/drawable/importance_title_5.xml | 8 - astrid/res/drawable/importance_title_6.xml | 8 - astrid/res/drawable/task_edit_background.xml | 21 + astrid/res/layout/alarm_edit_row.xml | 2 +- .../control_set_collaborators_display.xml | 39 -- .../layout/control_set_deadline_display.xml | 39 -- ...ay.xml => control_set_default_display.xml} | 27 +- .../res/layout/control_set_hide_display.xml | 40 -- astrid/res/layout/control_set_importance.xml | 9 +- .../res/layout/control_set_notes_display.xml | 81 +-- .../layout/control_set_opencrx_display.xml | 4 +- .../layout/control_set_producteev_display.xml | 35 -- .../layout/control_set_reminders_display.xml | 39 -- .../res/layout/control_set_repeat_display.xml | 2 +- .../res/layout/control_set_tags_display.xml | 40 -- .../control_set_timers_extras_display.xml | 39 -- astrid/res/layout/control_set_title.xml | 45 +- astrid/res/layout/date_time_picker.xml | 2 +- astrid/res/layout/edit_note_activity.xml | 78 --- astrid/res/layout/task_adapter_row.xml | 2 +- astrid/res/layout/task_edit_activity.xml | 215 +++++-- astrid/res/layout/task_edit_activity_more.xml | 12 + astrid/res/layout/task_edit_more_controls.xml | 8 + astrid/res/layout/tea_separator.xml | 6 + astrid/res/layout/update_adapter_row.xml | 7 + astrid/res/values/colors.xml | 2 +- astrid/res/values/keys.xml | 16 +- astrid/res/values/strings-core.xml | 6 + astrid/res/values/styles.xml | 19 +- .../activity/BeastModePreferenceActivity.java | 7 +- .../astrid/activity/TaskEditActivity.java | 582 ++++++++++++------ .../astrid/activity/TaskEditViewPager.java | 61 ++ .../todoroo/astrid/activity/TestFragment.java | 56 ++ .../todoroo/astrid/adapter/TaskAdapter.java | 15 +- .../helper/ProgressBarSyncResultCallback.java | 12 +- .../todoroo/astrid/ui/DeadlineControlSet.java | 3 +- .../astrid/ui/EditNotesControlSet.java | 4 +- .../todoroo/astrid/ui/EditTextControlSet.java | 35 ++ .../astrid/ui/EditTitleControlSet.java | 52 +- .../astrid/ui/HideUntilControlSet.java | 3 +- .../astrid/ui/ImportanceControlSet.java | 2 +- .../com/todoroo/astrid/ui/NestedListView.java | 47 ++ .../todoroo/astrid/ui/PopupControlSet.java | 13 +- .../todoroo/astrid/ui/ReminderControlSet.java | 1 + .../astrid/ui/TaskEditMoreControls.java | 35 ++ .../library/res/layout/vpi__tab.xml | 3 +- .../viewpagerindicator/TabPageIndicator.java | 1 - 71 files changed, 1276 insertions(+), 870 deletions(-) create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_focused.9.png create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_selected.9.png create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_selected_focused.9.png create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_selected_pressed.9.png create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_unselected.9.png create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_unselected_focused.9.png create mode 100755 astrid/res/drawable-hdpi/custom_tab_indicator_unselected_pressed.9.png create mode 100755 astrid/res/drawable/custom_tab_indicator.xml delete mode 100644 astrid/res/drawable/importance_title_1.xml delete mode 100644 astrid/res/drawable/importance_title_2.xml delete mode 100644 astrid/res/drawable/importance_title_3.xml delete mode 100644 astrid/res/drawable/importance_title_4.xml delete mode 100644 astrid/res/drawable/importance_title_5.xml delete mode 100644 astrid/res/drawable/importance_title_6.xml create mode 100644 astrid/res/drawable/task_edit_background.xml delete mode 100644 astrid/res/layout/control_set_collaborators_display.xml delete mode 100644 astrid/res/layout/control_set_deadline_display.xml rename astrid/res/layout/{control_set_assigned_display.xml => control_set_default_display.xml} (61%) delete mode 100644 astrid/res/layout/control_set_hide_display.xml delete mode 100644 astrid/res/layout/control_set_producteev_display.xml delete mode 100644 astrid/res/layout/control_set_reminders_display.xml delete mode 100644 astrid/res/layout/control_set_tags_display.xml delete mode 100644 astrid/res/layout/control_set_timers_extras_display.xml delete mode 100644 astrid/res/layout/edit_note_activity.xml create mode 100644 astrid/res/layout/task_edit_activity_more.xml create mode 100644 astrid/res/layout/task_edit_more_controls.xml create mode 100644 astrid/res/layout/tea_separator.xml create mode 100644 astrid/src/com/todoroo/astrid/activity/TaskEditViewPager.java create mode 100755 astrid/src/com/todoroo/astrid/activity/TestFragment.java create mode 100644 astrid/src/com/todoroo/astrid/ui/NestedListView.java create mode 100644 astrid/src/com/todoroo/astrid/ui/TaskEditMoreControls.java diff --git a/astrid/.classpath b/astrid/.classpath index 47c72d44d..fe7a86e7a 100644 --- a/astrid/.classpath +++ b/astrid/.classpath @@ -1,7 +1,6 @@ - diff --git a/astrid/.project b/astrid/.project index 87cb5642d..a8cc9332f 100644 --- a/astrid/.project +++ b/astrid/.project @@ -36,11 +36,4 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.common.project.facet.core.nature - - - abs_src - 2 - PARENT_LOC/astrid/actionbarsherlock/library/src - - diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index feb0ae011..d9dcc5770 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -481,8 +481,6 @@ - + + + + + + + + + + + + + + + + + + + diff --git a/astrid/res/drawable/edit_title_background.xml b/astrid/res/drawable/edit_title_background.xml index 4bd2e18ed..9a9add4de 100644 --- a/astrid/res/drawable/edit_title_background.xml +++ b/astrid/res/drawable/edit_title_background.xml @@ -1,15 +1,14 @@ - + - - - + diff --git a/astrid/res/drawable/importance_title_1.xml b/astrid/res/drawable/importance_title_1.xml deleted file mode 100644 index 9b982e4dc..000000000 --- a/astrid/res/drawable/importance_title_1.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/astrid/res/drawable/importance_title_2.xml b/astrid/res/drawable/importance_title_2.xml deleted file mode 100644 index 5cd6bba4f..000000000 --- a/astrid/res/drawable/importance_title_2.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/astrid/res/drawable/importance_title_3.xml b/astrid/res/drawable/importance_title_3.xml deleted file mode 100644 index 959017d34..000000000 --- a/astrid/res/drawable/importance_title_3.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/astrid/res/drawable/importance_title_4.xml b/astrid/res/drawable/importance_title_4.xml deleted file mode 100644 index f11497d0d..000000000 --- a/astrid/res/drawable/importance_title_4.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/astrid/res/drawable/importance_title_5.xml b/astrid/res/drawable/importance_title_5.xml deleted file mode 100644 index aa44a31d7..000000000 --- a/astrid/res/drawable/importance_title_5.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/astrid/res/drawable/importance_title_6.xml b/astrid/res/drawable/importance_title_6.xml deleted file mode 100644 index 099d7e210..000000000 --- a/astrid/res/drawable/importance_title_6.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/astrid/res/drawable/task_edit_background.xml b/astrid/res/drawable/task_edit_background.xml new file mode 100644 index 000000000..55a139e19 --- /dev/null +++ b/astrid/res/drawable/task_edit_background.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/astrid/res/layout/alarm_edit_row.xml b/astrid/res/layout/alarm_edit_row.xml index 44f5fe563..58217e13e 100644 --- a/astrid/res/layout/alarm_edit_row.xml +++ b/astrid/res/layout/alarm_edit_row.xml @@ -45,8 +45,8 @@ /> diff --git a/astrid/res/layout/control_set_collaborators_display.xml b/astrid/res/layout/control_set_collaborators_display.xml deleted file mode 100644 index 88a9221d8..000000000 --- a/astrid/res/layout/control_set_collaborators_display.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_deadline_display.xml b/astrid/res/layout/control_set_deadline_display.xml deleted file mode 100644 index 7838ba6a9..000000000 --- a/astrid/res/layout/control_set_deadline_display.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_assigned_display.xml b/astrid/res/layout/control_set_default_display.xml similarity index 61% rename from astrid/res/layout/control_set_assigned_display.xml rename to astrid/res/layout/control_set_default_display.xml index abb061fe5..cbf0bdc70 100644 --- a/astrid/res/layout/control_set_assigned_display.xml +++ b/astrid/res/layout/control_set_default_display.xml @@ -3,37 +3,36 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent"> - + android:layout_height="wrap_content"> - + style="@style/TextAppearance.GEN_EditLabel" /> - - - + diff --git a/astrid/res/layout/control_set_hide_display.xml b/astrid/res/layout/control_set_hide_display.xml deleted file mode 100644 index 200282802..000000000 --- a/astrid/res/layout/control_set_hide_display.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_importance.xml b/astrid/res/layout/control_set_importance.xml index 4b439039a..fab2a028d 100644 --- a/astrid/res/layout/control_set_importance.xml +++ b/astrid/res/layout/control_set_importance.xml @@ -12,12 +12,11 @@ android:paddingBottom="5dip" android:gravity="center_vertical" android:layout_width="fill_parent" + android:paddingLeft="10dip" + android:paddingRight="10dip" android:layout_height="50dip"> - diff --git a/astrid/res/layout/control_set_notes_display.xml b/astrid/res/layout/control_set_notes_display.xml index 5dd2dea93..335780189 100644 --- a/astrid/res/layout/control_set_notes_display.xml +++ b/astrid/res/layout/control_set_notes_display.xml @@ -1,40 +1,43 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/astrid/res/layout/control_set_opencrx_display.xml b/astrid/res/layout/control_set_opencrx_display.xml index f80850d37..d2e3f5c9c 100644 --- a/astrid/res/layout/control_set_opencrx_display.xml +++ b/astrid/res/layout/control_set_opencrx_display.xml @@ -10,6 +10,8 @@ android:id="@+id/opencrx_body" android:layout_width="fill_parent" android:layout_height="50dip" + android:paddingLeft="10dip" + android:paddingRight="10dip" android:gravity="center_vertical"> diff --git a/astrid/res/layout/control_set_producteev_display.xml b/astrid/res/layout/control_set_producteev_display.xml deleted file mode 100644 index d214459f1..000000000 --- a/astrid/res/layout/control_set_producteev_display.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_reminders_display.xml b/astrid/res/layout/control_set_reminders_display.xml deleted file mode 100644 index 6fc0c64db..000000000 --- a/astrid/res/layout/control_set_reminders_display.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_repeat_display.xml b/astrid/res/layout/control_set_repeat_display.xml index 0a0e290c9..e9dd486c8 100644 --- a/astrid/res/layout/control_set_repeat_display.xml +++ b/astrid/res/layout/control_set_repeat_display.xml @@ -15,7 +15,7 @@ style="@style/EditRowImage" android:src="@drawable/icn_edit_repeats"/> - - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_timers_extras_display.xml b/astrid/res/layout/control_set_timers_extras_display.xml deleted file mode 100644 index 16240b1b8..000000000 --- a/astrid/res/layout/control_set_timers_extras_display.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/astrid/res/layout/control_set_title.xml b/astrid/res/layout/control_set_title.xml index fd738737f..fe361137f 100644 --- a/astrid/res/layout/control_set_title.xml +++ b/astrid/res/layout/control_set_title.xml @@ -9,23 +9,31 @@ + + + + + + + - + + + + android:layout_weight="1" + android:visibility="gone">