diff options
author | Andrew Dolgov <[email protected]> | 2014-10-16 12:19:52 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-10-16 12:19:52 +0400 |
commit | a38e98c80e80e955818ad83f72601734c7c42197 (patch) | |
tree | 23ba0a2897900992946a3ad34e71ccbad9c6db52 /res/layout | |
parent | 8e8bbf70aad0b6a4cc9a94bc2a4d7a14936862ee (diff) |
add headline image border; make showing them optional
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/headlines_row.xml | 6 | ||||
-rw-r--r-- | res/layout/headlines_row_selected.xml | 8 | ||||
-rw-r--r-- | res/layout/headlines_row_selected_unread.xml | 6 | ||||
-rw-r--r-- | res/layout/headlines_row_unread.xml | 11 |
4 files changed, 23 insertions, 8 deletions
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" />
diff --git a/res/layout/headlines_row_selected.xml b/res/layout/headlines_row_selected.xml index 332b239a..0e600daa 100644 --- a/res/layout/headlines_row_selected.xml +++ b/res/layout/headlines_row_selected.xml @@ -79,12 +79,16 @@ android:layout_gravity="center"
android:layout_height="wrap_content" >
- <ImageView
+ <ImageView
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" />
diff --git a/res/layout/headlines_row_selected_unread.xml b/res/layout/headlines_row_selected_unread.xml index 553bb9f8..5e4f7eeb 100644 --- a/res/layout/headlines_row_selected_unread.xml +++ b/res/layout/headlines_row_selected_unread.xml @@ -84,8 +84,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" />
diff --git a/res/layout/headlines_row_unread.xml b/res/layout/headlines_row_unread.xml index 70fc7a9e..96a65134 100644 --- a/res/layout/headlines_row_unread.xml +++ b/res/layout/headlines_row_unread.xml @@ -74,18 +74,21 @@ </LinearLayout>
<FrameLayout
- android:paddingTop="3dp"
android:id="@+id/flavorImageHolder"
android:layout_width="match_parent"
- android:layout_gravity="center"
- android:layout_height="wrap_content" >
+ android:layout_height="wrap_content"
+ android:paddingTop="3dp" >
<ImageView
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" />
|