From c0ef67b46846e5fb38634993d91e8b1a356d736f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Oct 2014 13:43:16 +0400 Subject: [PATCH] switch to cardview, remove obsolete drawables --- .../src/main/res/drawable/headline_row.xml | 19 ------------------- .../res/drawable/headline_row_selected.xml | 19 ------------------- .../drawable/headline_row_selected_sepia.xml | 19 ------------------- .../main/res/drawable/headline_row_sepia.xml | 19 ------------------- .../main/res/drawable/headline_row_unread.xml | 19 ------------------- .../drawable/headline_row_unread_sepia.xml | 19 ------------------- .../main/res/layout/headlines_fragment.xml | 2 -- .../src/main/res/layout/headlines_row.xml | 13 ++++++------- .../res/layout/headlines_row_selected.xml | 15 ++++++++------- .../layout/headlines_row_selected_unread.xml | 15 ++++++++------- .../main/res/layout/headlines_row_unread.xml | 15 ++++++++------- org.fox.ttrss/src/main/res/values/style.xml | 10 ++++------ 12 files changed, 34 insertions(+), 150 deletions(-) delete mode 100644 org.fox.ttrss/src/main/res/drawable/headline_row.xml delete mode 100644 org.fox.ttrss/src/main/res/drawable/headline_row_selected.xml delete mode 100644 org.fox.ttrss/src/main/res/drawable/headline_row_selected_sepia.xml delete mode 100644 org.fox.ttrss/src/main/res/drawable/headline_row_sepia.xml delete mode 100644 org.fox.ttrss/src/main/res/drawable/headline_row_unread.xml delete mode 100644 org.fox.ttrss/src/main/res/drawable/headline_row_unread_sepia.xml diff --git a/org.fox.ttrss/src/main/res/drawable/headline_row.xml b/org.fox.ttrss/src/main/res/drawable/headline_row.xml deleted file mode 100644 index ccfb8703..00000000 --- a/org.fox.ttrss/src/main/res/drawable/headline_row.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/drawable/headline_row_selected.xml b/org.fox.ttrss/src/main/res/drawable/headline_row_selected.xml deleted file mode 100644 index 3f005c8a..00000000 --- a/org.fox.ttrss/src/main/res/drawable/headline_row_selected.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/drawable/headline_row_selected_sepia.xml b/org.fox.ttrss/src/main/res/drawable/headline_row_selected_sepia.xml deleted file mode 100644 index 17d096e1..00000000 --- a/org.fox.ttrss/src/main/res/drawable/headline_row_selected_sepia.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/drawable/headline_row_sepia.xml b/org.fox.ttrss/src/main/res/drawable/headline_row_sepia.xml deleted file mode 100644 index facd2b6a..00000000 --- a/org.fox.ttrss/src/main/res/drawable/headline_row_sepia.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/drawable/headline_row_unread.xml b/org.fox.ttrss/src/main/res/drawable/headline_row_unread.xml deleted file mode 100644 index 6813164f..00000000 --- a/org.fox.ttrss/src/main/res/drawable/headline_row_unread.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/drawable/headline_row_unread_sepia.xml b/org.fox.ttrss/src/main/res/drawable/headline_row_unread_sepia.xml deleted file mode 100644 index 6c649257..00000000 --- a/org.fox.ttrss/src/main/res/drawable/headline_row_unread_sepia.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml b/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml index 16e25520..df44f739 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml @@ -13,8 +13,6 @@ android:id="@+id/headlines" android:scrollbars="vertical" android:layout_width="match_parent" - android:dividerHeight="0dp" - android:divider="@null" android:paddingTop="3dp" android:layout_height="match_parent" > diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row.xml b/org.fox.ttrss/src/main/res/layout/headlines_row.xml index 975485a3..28880f9d 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row.xml @@ -1,20 +1,19 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml index 5371dce3..5fa4e279 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml @@ -1,18 +1,19 @@ - + card_view:cardElevation="2dp" + card_view:cardBackgroundColor="?headlineSelectedBackground" + tools:ignore="HardcodedText" > - \ No newline at end of file + \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml index 8d03620b..51aaa263 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml @@ -1,18 +1,19 @@ - + card_view:cardElevation="2dp" + card_view:cardBackgroundColor="?headlineSelectedBackground" + tools:ignore="HardcodedText" > - + diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml index b5e9d3f6..1fdd4f8a 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml @@ -1,18 +1,19 @@ - + card_view:cardElevation="2dp" + card_view:cardBackgroundColor="?headlineUnreadBackground" + tools:ignore="HardcodedText" > - \ No newline at end of file + \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/values/style.xml b/org.fox.ttrss/src/main/res/values/style.xml index 8c1fb98f..ab7f9b8f 100644 --- a/org.fox.ttrss/src/main/res/values/style.xml +++ b/org.fox.ttrss/src/main/res/values/style.xml @@ -9,9 +9,9 @@ @drawable/shadow_headlines #f0f0f0 @android:color/transparent - @drawable/headline_row_selected - @drawable/headline_row_unread - @drawable/headline_row + #88b0f0 + @android:color/white + #f5f5f5 #88b0f0 @android:color/primary_text_light #ffffff @@ -41,9 +41,7 @@ @drawable/shadow_feeds_sepia @drawable/shadow_headlines_sepia @drawable/paper_sepia - @drawable/headline_row_unread_sepia - @drawable/headline_row_sepia - @drawable/headline_row_selected_sepia + #E5B0A0 #E5B0A0 @drawable/paper_sepia @drawable/counter_background_sepia