From 30e239bde1a42f046b10a025f5dcf9639cce8b2c Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 27 Mar 2013 13:21:58 -0700 Subject: [PATCH] More custom filter activity polish --- .../com/todoroo/astrid/core/FilterView.java | 8 +++---- astrid/res/layout/custom_filter_activity.xml | 21 ++++++++++++++++++- astrid/res/values/strings-filters.xml | 4 +--- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/core/FilterView.java b/astrid/plugin-src/com/todoroo/astrid/core/FilterView.java index 51c44656e..4c5323ec5 100644 --- a/astrid/plugin-src/com/todoroo/astrid/core/FilterView.java +++ b/astrid/plugin-src/com/todoroo/astrid/core/FilterView.java @@ -23,9 +23,9 @@ public class FilterView extends View { private int start = 0, end = 0, max = 1; - private static final int FILTER_COLOR = Color.rgb(85, 155, 255); - private static final int BG_COLOR = Color.CYAN; - private static final int TEXT_COLOR = Color.BLACK; + private static final int FILTER_COLOR = Color.rgb(0x1f, 0x78, 0xb4); + private static final int BG_COLOR = Color.rgb(0xe9, 0xe9, 0xe9); + private static final int TEXT_COLOR = Color.WHITE; // --- boilerplate @@ -74,7 +74,7 @@ public class FilterView extends View { paint.setColor(TEXT_COLOR); paint.setTextAlign(Paint.Align.CENTER); paint.setTextSize(16); - canvas.drawText(Integer.toString(end), getWidth() / 2, getHeight() / 2, paint); + canvas.drawText(Integer.toString(end), getWidth() / 2, getHeight() / 2 + 8, paint); } } diff --git a/astrid/res/layout/custom_filter_activity.xml b/astrid/res/layout/custom_filter_activity.xml index 462ed1d8f..f8639e3d4 100644 --- a/astrid/res/layout/custom_filter_activity.xml +++ b/astrid/res/layout/custom_filter_activity.xml @@ -14,11 +14,20 @@ + + + + + Delete Row - This screen lets you create a new filters. Add - criteria using the button below, short or long-press them to adjust, and - then click \"View\"! + Long press on items for additional options Add Criteria