diff --git a/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java b/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java index 872ea242c..b87e54784 100644 --- a/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java @@ -141,7 +141,7 @@ public class EditNoteActivity extends LinearLayout implements TimerActionListene private void setUpInterface() { - timerView = commentsBar.findViewById(R.id.timer_button); + timerView = commentsBar.findViewById(R.id.timer_container); commentButton = commentsBar.findViewById(R.id.commentButton); commentField = (EditText) commentsBar.findViewById(R.id.commentField); commentField.setOnEditorActionListener(new OnEditorActionListener() { diff --git a/astrid/plugin-src/com/todoroo/astrid/timers/TimerActionControlSet.java b/astrid/plugin-src/com/todoroo/astrid/timers/TimerActionControlSet.java index 012e96651..adc7157ae 100644 --- a/astrid/plugin-src/com/todoroo/astrid/timers/TimerActionControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/timers/TimerActionControlSet.java @@ -8,7 +8,8 @@ import android.os.SystemClock; import android.view.View; import android.view.View.OnClickListener; import android.widget.Chronometer; -import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; import com.timsu.astrid.R; import com.todoroo.andlib.utility.DateUtilities; @@ -17,20 +18,19 @@ import com.todoroo.astrid.helper.TaskEditControlSet; public class TimerActionControlSet extends TaskEditControlSet { - private final ImageButton timerButton; + private final ImageView timerButton; private final Chronometer chronometer; + private final LinearLayout timerContainer; private boolean timerActive; - private final Activity activity; private Task task; private final List listeners = new LinkedList(); public TimerActionControlSet(Activity activity, View parent) { super(activity, -1); - this.activity = activity; - timerButton = (ImageButton) parent.findViewById(R.id.timer_button); - timerButton.setOnClickListener(timerListener); - - chronometer = new Chronometer(activity); + timerContainer = (LinearLayout) parent.findViewById(R.id.timer_container); + timerButton = (ImageView) parent.findViewById(R.id.timer_button); + timerContainer.setOnClickListener(timerListener); + chronometer = (Chronometer) parent.findViewById(R.id.timer); } @Override @@ -77,12 +77,9 @@ public class TimerActionControlSet extends TaskEditControlSet { if(timerActive) { drawable = R.drawable.icn_timer_stop; } else { - if (task.getValue(Task.ELAPSED_SECONDS) == 0) - drawable = R.drawable.icn_edit_timer; - else - drawable = R.drawable.icn_timer_start; + drawable = R.drawable.icn_edit_timer; } - timerButton.setBackgroundResource(drawable); + timerButton.setImageResource(drawable); long elapsed = task.getValue(Task.ELAPSED_SECONDS) * 1000L; diff --git a/astrid/res/drawable/check_box_large_1.png b/astrid/res/drawable/check_box_large_1.png index 908faa2c8..02f55098b 100644 Binary files a/astrid/res/drawable/check_box_large_1.png and b/astrid/res/drawable/check_box_large_1.png differ diff --git a/astrid/res/drawable/check_box_large_2.png b/astrid/res/drawable/check_box_large_2.png index 2d2f38f70..9d9e37924 100644 Binary files a/astrid/res/drawable/check_box_large_2.png and b/astrid/res/drawable/check_box_large_2.png differ diff --git a/astrid/res/drawable/check_box_large_3.png b/astrid/res/drawable/check_box_large_3.png index 5103d5c82..aab8907b1 100644 Binary files a/astrid/res/drawable/check_box_large_3.png and b/astrid/res/drawable/check_box_large_3.png differ diff --git a/astrid/res/drawable/check_box_large_4.png b/astrid/res/drawable/check_box_large_4.png index 14b203b97..838fa734b 100644 Binary files a/astrid/res/drawable/check_box_large_4.png and b/astrid/res/drawable/check_box_large_4.png differ diff --git a/astrid/res/layout/control_set_title.xml b/astrid/res/layout/control_set_title.xml index 7736c9ad9..2f36a61c9 100644 --- a/astrid/res/layout/control_set_title.xml +++ b/astrid/res/layout/control_set_title.xml @@ -1,55 +1,33 @@ - + - - - - - - - - - - - - - - - + android:layout_height="fill_parent" + android:gravity="center_vertical" + android:button="@drawable/btn_check" /> + + + + \ No newline at end of file diff --git a/astrid/res/layout/task_adapter_row.xml b/astrid/res/layout/task_adapter_row.xml index ebe1f3efb..687f6b93f 100644 --- a/astrid/res/layout/task_adapter_row.xml +++ b/astrid/res/layout/task_adapter_row.xml @@ -6,30 +6,32 @@ android:id="@+id/rowBody" android:layout_width="fill_parent" android:layout_height="70dip" - android:paddingBottom="4dip" > + android:minHeight="70dip" + android:layout_marginTop="20dip" + android:paddingBottom="20dip" > @@ -38,18 +40,19 @@ + android:minHeight="40dip" + android:scaleType="center" + android:layout_centerVertical="true" /> @@ -60,7 +63,7 @@ android:id="@+id/title" style="@style/TextAppearance.TAd_ItemTitle" android:layout_width="fill_parent" - android:layout_height="fill_parent" + android:layout_height="wrap_content" android:layout_weight="100" android:gravity="center_vertical" android:maxLines="2" /> diff --git a/astrid/res/layout/task_edit_activity.xml b/astrid/res/layout/task_edit_activity.xml index f63f83538..ab59be39a 100644 --- a/astrid/res/layout/task_edit_activity.xml +++ b/astrid/res/layout/task_edit_activity.xml @@ -160,23 +160,42 @@ - + + + + + + - p_show_details + + p_show_full_title + p_show_decorations diff --git a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java index 47a6f4248..c452c1b54 100644 --- a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java @@ -266,6 +266,14 @@ public class TaskAdapter extends CursorAdapter implements Filterable { viewHolder.details2 = (TextView)view.findViewById(R.id.details2); viewHolder.taskRow = (LinearLayout)view.findViewById(R.id.task_row); + + if (Preferences.getBoolean(R.string.p_default_showfulltitle_key, false)) { + viewHolder.nameView.setMaxLines(Integer.MAX_VALUE); + LayoutParams containerParams = view.getLayoutParams(); + containerParams.height = LayoutParams.WRAP_CONTENT; + view.setLayoutParams(containerParams); + } + view.setTag(viewHolder); for(int i = 0; i < view.getChildCount(); i++) view.getChildAt(i).setTag(viewHolder); @@ -330,6 +338,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable { // name final TextView nameView = viewHolder.nameView; { String nameValue = task.getValue(Task.TITLE); + long hiddenUntil = task.getValue(Task.HIDE_UNTIL); if(task.getValue(Task.DELETION_DATE) > 0) nameValue = r.getString(R.string.TAd_deletedFormat, nameValue); @@ -404,7 +413,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable { } if (pictureView.getVisibility() == View.VISIBLE) { checkBoxView.setVisibility(View.INVISIBLE); - viewHolder.pictureBorder.setBackgroundResource(IMPORTANCE_RESOURCES[value]); + viewHolder.pictureBorder.setBackgroundResource(IMPORTANCE_RESOURCES_LARGE[value]); } else { checkBoxView.setVisibility(View.VISIBLE); }