diff options
author | Andrew Dolgov <[email protected]> | 2014-10-20 10:20:47 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-10-20 10:20:47 +0400 |
commit | f6deb68c76a87dfe5ec3353ae48bb8f0bfa5d5ce (patch) | |
tree | 73823ec30faf622c80b93f361613ad88d0472fcd /org.fox.ttrss/src/main/res/layout | |
parent | 1510e7985e9d3fc9f3878ed1749c8a0a568b5a91 (diff) |
fix inconsistent padding for flavor images
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
3 files changed, 13 insertions, 16 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row.xml b/org.fox.ttrss/src/main/res/layout/headlines_row.xml index 52f17ba3..975485a3 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row.xml @@ -75,11 +75,10 @@ </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:padding="10dp" > <org.fox.ttrss.util.EnlargingImageView android:id="@+id/flavor_image" @@ -89,8 +88,8 @@ android:adjustViewBounds="true" android:background="@drawable/flavor_image_border" android:scaleType="fitCenter" - android:cropToPadding="true" - android:padding="2dp" + android:cropToPadding="true" + android:padding="2dp" android:visibility="gone" /> </FrameLayout> diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml index 149ff555..5371dce3 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml @@ -73,13 +73,12 @@ </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:padding="10dp" > - <org.fox.ttrss.util.EnlargingImageView + <org.fox.ttrss.util.EnlargingImageView android:id="@+id/flavor_image" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -87,8 +86,8 @@ android:adjustViewBounds="true" android:background="@drawable/flavor_image_border" android:scaleType="fitCenter" - android:cropToPadding="true" - android:padding="2dp" + android:cropToPadding="true" + android:padding="2dp" android:visibility="gone" /> </FrameLayout> diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml index 833c09e2..8d03620b 100644 --- a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml @@ -74,11 +74,10 @@ </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:padding="10dp" > <org.fox.ttrss.util.EnlargingImageView android:id="@+id/flavor_image" @@ -88,8 +87,8 @@ android:adjustViewBounds="true" android:background="@drawable/flavor_image_border" android:scaleType="fitCenter" - android:cropToPadding="true" - android:padding="2dp" + android:cropToPadding="true" + android:padding="2dp" android:visibility="gone" /> </FrameLayout> |