From a38e98c80e80e955818ad83f72601734c7c42197 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 16 Oct 2014 12:19:52 +0400 Subject: add headline image border; make showing them optional --- res/layout/headlines_row.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'res/layout/headlines_row.xml') diff --git a/res/layout/headlines_row.xml b/res/layout/headlines_row.xml index 1d40e1bf..8902a6bc 100644 --- a/res/layout/headlines_row.xml +++ b/res/layout/headlines_row.xml @@ -85,8 +85,12 @@ android:id="@+id/flavor_image" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="center" android:adjustViewBounds="true" - android:maxHeight="128dp" + android:background="@drawable/flavor_image_border" + android:cropToPadding="true" + android:maxHeight="256dp" + android:padding="1dp" android:scaleType="centerInside" android:src="@null" android:visibility="gone" /> -- cgit v1.2.3