More custom filter activity polish

pull/14/head
Sam Bosley 12 years ago
parent acb49651d2
commit 30e239bde1

@ -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);
}
}

@ -14,11 +14,20 @@
<EditText android:id="@+id/filterName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dip"
android:layout_marginTop="15dip"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginBottom="15dip"
android:layout_weight="1"
android:background="@null"
android:hint="@string/CFA_filterName_hint"
android:capitalize="sentences" />
<View
android:layout_height="1px"
android:layout_width="fill_parent"
android:background="#e9e9e9"/>
<!-- List -->
<com.todoroo.astrid.ui.ErrorCatchingListView android:id="@android:id/list"
android:layout_width="fill_parent"
@ -27,6 +36,16 @@
android:scrollbars="vertical"
android:cacheColorHint="#00000000"/>
<!-- help text -->
<TextView android:id="@+id/help"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:paddingLeft="5dip"
android:text="@string/CFA_help"
style="@style/TextAppearance"/>
<!-- buttons -->
<LinearLayout
android:orientation="horizontal"

@ -57,9 +57,7 @@
<string name="CFA_context_delete">Delete Row</string>
<!-- slide 30b: Filter Screen Help Text -->
<string name="CFA_help">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\"!</string>
<string name="CFA_help">Long press on items for additional options</string>
<!-- slide 30c: Filter Button: add new -->
<string name="CFA_button_add">Add Criteria</string>

Loading…
Cancel
Save