From 1ad51e122bbc3fb54b1e255364c89e438fb8f917 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 17 Dec 2012 10:44:06 -0800 Subject: [PATCH] Polish notes layout --- .../res/layout/control_set_notes_display.xml | 14 ++++---- .../astrid/ui/EditNotesControlSet.java | 33 +++---------------- 2 files changed, 12 insertions(+), 35 deletions(-) diff --git a/astrid/res/layout/control_set_notes_display.xml b/astrid/res/layout/control_set_notes_display.xml index 0bd106ffa..4804c3dad 100644 --- a/astrid/res/layout/control_set_notes_display.xml +++ b/astrid/res/layout/control_set_notes_display.xml @@ -14,10 +14,10 @@ @@ -26,17 +26,17 @@ style="@style/TextAppearance.GEN_EditLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginRight="15dip" + android:paddingTop="4dip" + android:paddingBottom="4dip" android:text="@string/TEA_note_label" /> - + android:gravity="left" /> 2) { - notesBody.setGravity(Gravity.TOP); - notesBody.setPadding( notesBody.getPaddingLeft(), (int) (metrics.density * 8), notesBody.getPaddingRight(), (int) (metrics.density * 8)); - notesPreview.setGravity(Gravity.LEFT); - } else { - notesBody.setGravity(Gravity.CENTER_VERTICAL); - notesBody.setPadding( notesBody.getPaddingLeft(), 0, notesBody.getPaddingRight(), 0); - notesPreview.setGravity(Gravity.RIGHT); - } - } - }