summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-10-25 12:10:58 +0400
committerAndrew Dolgov <[email protected]>2014-10-25 12:10:58 +0400
commitde998a1e927f93344bee8f881b8876f27f629eca (patch)
tree9afd9f225d3bedd7274ac48afbfeb97aad762257
parent2e6ef16b20488157e4af80a87742d2c6a1c3f526 (diff)
use cardview for article fragment
-rw-r--r--org.fox.ttrss/src/main/res/layout/article_fragment.xml13
-rw-r--r--org.fox.ttrss/src/main/res/values/style.xml4
2 files changed, 11 insertions, 6 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/article_fragment.xml b/org.fox.ttrss/src/main/res/layout/article_fragment.xml
index 56d42d89..14c84804 100644
--- a/org.fox.ttrss/src/main/res/layout/article_fragment.xml
+++ b/org.fox.ttrss/src/main/res/layout/article_fragment.xml
@@ -1,8 +1,13 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<android.support.v7.widget.CardView
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/article_fragment"
android:layout_width="fill_parent"
- android:layout_height="match_parent"
- android:background="?articleBackground">
+ android:layout_height="wrap_content"
+ card_view:cardElevation="2dp"
+ card_view:cardBackgroundColor="?articleBackground"
+ tools:ignore="HardcodedText" >
<org.fox.ttrss.util.NoChildFocusScrollView
android:id="@+id/article_scrollview"
@@ -100,4 +105,4 @@
</org.fox.ttrss.util.NoChildFocusScrollView>
-</RelativeLayout> \ No newline at end of file
+</android.support.v7.widget.CardView> \ 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 ab7f9b8f..9e1118e0 100644
--- a/org.fox.ttrss/src/main/res/values/style.xml
+++ b/org.fox.ttrss/src/main/res/values/style.xml
@@ -8,7 +8,7 @@
<item name="unreadCounterColor">#ffffff</item>
<item name="headlinesBackground"><!-- #f0f0f0 -->@drawable/shadow_headlines</item>
<item name="headlinesBackgroundSolid">#f0f0f0</item>
- <item name="articleBackground">@android:color/transparent</item>
+ <item name="articleBackground">@android:color/white</item>
<item name="headlineSelectedBackground">#88b0f0</item>
<item name="headlineUnreadBackground">@android:color/white</item>
<item name="headlineNormalBackground">#f5f5f5</item>
@@ -43,7 +43,7 @@
<item name="headlinesBackgroundSolid">@drawable/paper_sepia</item>
<item name="headlineSelectedBackground">#E5B0A0</item>
<item name="feedsSelectedBackground">#E5B0A0</item>
- <item name="articleBackground">@drawable/paper_sepia</item>
+ <item name="articleBackground">@android:color/white</item>
<item name="unreadCounterBackground">@drawable/counter_background_sepia</item>
<item name="unreadSelectedCounterBackground">@drawable/counter_background_sepia</item>
<item name="feedlistTextColor">#35281C</item>