summaryrefslogtreecommitdiff
path: root/res/layout/headlines_row_unread.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-10-16 13:53:44 +0400
committerAndrew Dolgov <[email protected]>2014-10-16 13:53:44 +0400
commit811bc035c0935d321b2cad085853580e44888f62 (patch)
tree0ba39359f2cf17e5577bed2ace480f776277b8ea /res/layout/headlines_row_unread.xml
parent636ddc362369c7658ea40bb3f9e488db902f6408 (diff)
use viewholder for headlines view
automatically enlarge flavor image
Diffstat (limited to 'res/layout/headlines_row_unread.xml')
-rw-r--r--res/layout/headlines_row_unread.xml16
1 files changed, 7 insertions, 9 deletions
diff --git a/res/layout/headlines_row_unread.xml b/res/layout/headlines_row_unread.xml
index 96a65134..107056b9 100644
--- a/res/layout/headlines_row_unread.xml
+++ b/res/layout/headlines_row_unread.xml
@@ -76,21 +76,19 @@
<FrameLayout
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="3dp" >
+ android:layout_height="wrap_content"
+ android:padding="10dp" >
- <ImageView
+ <org.fox.ttrss.util.EnlargingImageView
android:id="@+id/flavor_image"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:background="@drawable/flavor_image_border"
- android:cropToPadding="true"
- android:maxHeight="256dp"
- android:padding="1dp"
- android:scaleType="centerInside"
- android:src="@null"
+ android:scaleType="fitCenter"
+ android:cropToPadding="true"
+ android:padding="2dp"
android:visibility="gone" />
</FrameLayout>