diff options
author | Andrew Dolgov <[email protected]> | 2014-10-16 13:53:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-10-16 13:53:44 +0400 |
commit | 811bc035c0935d321b2cad085853580e44888f62 (patch) | |
tree | 0ba39359f2cf17e5577bed2ace480f776277b8ea /res/layout/headlines_row.xml | |
parent | 636ddc362369c7658ea40bb3f9e488db902f6408 (diff) |
use viewholder for headlines view
automatically enlarge flavor image
Diffstat (limited to 'res/layout/headlines_row.xml')
-rw-r--r-- | res/layout/headlines_row.xml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/res/layout/headlines_row.xml b/res/layout/headlines_row.xml index 8902a6bc..77233430 100644 --- a/res/layout/headlines_row.xml +++ b/res/layout/headlines_row.xml @@ -81,18 +81,16 @@ android:layout_gravity="center"
android:layout_height="wrap_content" >
- <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>
|