From c84a1100b01fda8d30aa80adb3f267aff306d535 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 May 2013 18:01:00 +0400 Subject: [PATCH] improve readability of sw600dp headline rows --- .classpath | 22 +-- project.properties | 2 +- .../headlines_row_selected.xml | 80 -------- .../headlines_row_selected_unread.xml | 81 -------- res/layout-sw600dp/article_fragment.xml | 4 +- res/layout-sw600dp/headlines_row.xml | 176 ++++++++--------- res/layout-sw600dp/headlines_row_selected.xml | 181 ++++++++--------- .../headlines_row_selected_unread.xml | 182 +++++++++--------- res/layout-sw600dp/headlines_row_unread.xml | 179 ++++++++--------- 9 files changed, 378 insertions(+), 529 deletions(-) delete mode 100644 res/layout-sw600dp-port/headlines_row_selected.xml delete mode 100644 res/layout-sw600dp-port/headlines_row_selected_unread.xml diff --git a/.classpath b/.classpath index ecdd04f3..be5840b2 100644 --- a/.classpath +++ b/.classpath @@ -1,11 +1,11 @@ - - - - - - - - - - - + + + + + + + + + + + diff --git a/project.properties b/project.properties index 4fe1b47d..c6312a57 100644 --- a/project.properties +++ b/project.properties @@ -10,4 +10,4 @@ # Project target. target=android-17 android.library.reference.1=..\\Android-ViewPagerIndicator\\library -android.library.reference.2=../ActionBarSherlock/actionbarsherlock +android.library.reference.2=..\\ActionBarSherlock\\actionbarsherlock diff --git a/res/layout-sw600dp-port/headlines_row_selected.xml b/res/layout-sw600dp-port/headlines_row_selected.xml deleted file mode 100644 index cdcc20e7..00000000 --- a/res/layout-sw600dp-port/headlines_row_selected.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-sw600dp-port/headlines_row_selected_unread.xml b/res/layout-sw600dp-port/headlines_row_selected_unread.xml deleted file mode 100644 index 0805077d..00000000 --- a/res/layout-sw600dp-port/headlines_row_selected_unread.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-sw600dp/article_fragment.xml b/res/layout-sw600dp/article_fragment.xml index 7cde45f4..3b48bed1 100644 --- a/res/layout-sw600dp/article_fragment.xml +++ b/res/layout-sw600dp/article_fragment.xml @@ -56,8 +56,7 @@ android:singleLine="true" android:text="{Author}" android:textColor="?headlineExcerptTextColor" - android:textSize="13sp" - android:textStyle="italic" /> + android:textSize="13sp" /> + android:orientation="vertical" + android:padding="6dp" > - + android:paddingLeft="0dp" + android:paddingRight="0dp" /> - + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="false" + android:text="{Title...}" + android:textColor="?headlineTextColor" + android:textSize="16sp" /> - + - + - + - - - - - - - - - - - - - - - - + android:layout_weight="0.5" + android:gravity="right|center_vertical" + android:text="Jan 01" + android:textColor="?headlineExcerptTextColor" + android:textSize="12sp" + android:textStyle="italic" /> - + - - + + + + + + + + + diff --git a/res/layout-sw600dp/headlines_row_selected.xml b/res/layout-sw600dp/headlines_row_selected.xml index f18ff51f..3cfd98e8 100644 --- a/res/layout-sw600dp/headlines_row_selected.xml +++ b/res/layout-sw600dp/headlines_row_selected.xml @@ -4,8 +4,8 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="?headlineSelectedBackground" - android:padding="4sp" - android:orientation="vertical" > + android:orientation="vertical" + android:padding="6dp" > - + android:paddingLeft="0dp" + android:paddingRight="0dp" /> - + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="false" + android:text="{Title...}" + android:textColor="?headlineSelectedTextColor" + android:textSize="16sp" /> - - + - + - + - - - - - - - - - - - - - - - - - - + android:layout_weight="0.5" + android:gravity="right|center_vertical" + android:text="Jan 01" + android:textColor="?headlineSelectedExcerptTextColor" + android:textSize="12sp" + android:textStyle="italic" /> - + + + + + + + + + + + - - \ No newline at end of file diff --git a/res/layout-sw600dp/headlines_row_selected_unread.xml b/res/layout-sw600dp/headlines_row_selected_unread.xml index 9fa73d04..2d3354b6 100644 --- a/res/layout-sw600dp/headlines_row_selected_unread.xml +++ b/res/layout-sw600dp/headlines_row_selected_unread.xml @@ -4,8 +4,8 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="?headlineSelectedBackground" - android:padding="4sp" - android:orientation="vertical" > + android:orientation="vertical" + android:padding="6dp" > - + android:paddingLeft="0dp" + android:paddingRight="0dp" /> - + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="false" + android:text="{Title...}" + android:textColor="?headlineSelectedTextColor" + android:textSize="16sp" + android:textStyle="bold" /> - - - - + - + - + - - - - - - - - - - - - - - - - + android:layout_weight="0.5" + android:gravity="right|center_vertical" + android:text="Jan 01" + android:textColor="?headlineSelectedExcerptTextColor" + android:textSize="12sp" + android:textStyle="italic" /> - + + + + + + + + + + + - - \ No newline at end of file diff --git a/res/layout-sw600dp/headlines_row_unread.xml b/res/layout-sw600dp/headlines_row_unread.xml index d58b78a6..4187af8f 100644 --- a/res/layout-sw600dp/headlines_row_unread.xml +++ b/res/layout-sw600dp/headlines_row_unread.xml @@ -4,8 +4,8 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="?headlineUnreadBackground" - android:padding="4sp" - android:orientation="vertical" > + android:orientation="vertical" + android:padding="6dp" > - + android:paddingLeft="0dp" + android:paddingRight="0dp" /> - - + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="false" + android:text="{Title...}" + android:textColor="?headlineUnreadTextColor" + android:textSize="16sp" + android:textStyle="bold" /> - + - - - + - + - - - - - - - - - - - - - - + android:layout_weight="0.5" + android:gravity="right|center_vertical" + android:text="Jan 01" + android:textColor="?headlineExcerptTextColor" + android:textSize="12sp" + android:textStyle="italic" /> - + - - + + + + + + + + +