fix inconsistent padding for flavor images

This commit is contained in:
Andrew Dolgov 2014-10-20 10:20:47 +04:00
parent 1510e7985e
commit f6deb68c76
4 changed files with 15 additions and 18 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss" package="org.fox.ttrss"
android:versionCode="243" android:versionCode="244"
android:versionName="1.44" > android:versionName="1.45" >
<uses-sdk <uses-sdk
android:minSdkVersion="8" android:minSdkVersion="8"

View File

@ -75,11 +75,10 @@
</LinearLayout> </LinearLayout>
<FrameLayout <FrameLayout
android:paddingTop="3dp"
android:id="@+id/flavorImageHolder" android:id="@+id/flavorImageHolder"
android:layout_width="match_parent" 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:id="@+id/flavor_image"
@ -89,8 +88,8 @@
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:background="@drawable/flavor_image_border" android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:cropToPadding="true" android:cropToPadding="true"
android:padding="2dp" android:padding="2dp"
android:visibility="gone" /> android:visibility="gone" />
</FrameLayout> </FrameLayout>

View File

@ -73,13 +73,12 @@
</LinearLayout> </LinearLayout>
<FrameLayout <FrameLayout
android:paddingTop="3dp"
android:id="@+id/flavorImageHolder" android:id="@+id/flavorImageHolder"
android:layout_width="match_parent" 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:id="@+id/flavor_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -87,8 +86,8 @@
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:background="@drawable/flavor_image_border" android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:cropToPadding="true" android:cropToPadding="true"
android:padding="2dp" android:padding="2dp"
android:visibility="gone" /> android:visibility="gone" />
</FrameLayout> </FrameLayout>

View File

@ -74,11 +74,10 @@
</LinearLayout> </LinearLayout>
<FrameLayout <FrameLayout
android:paddingTop="3dp"
android:id="@+id/flavorImageHolder" android:id="@+id/flavorImageHolder"
android:layout_width="match_parent" 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:id="@+id/flavor_image"
@ -88,8 +87,8 @@
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:background="@drawable/flavor_image_border" android:background="@drawable/flavor_image_border"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:cropToPadding="true" android:cropToPadding="true"
android:padding="2dp" android:padding="2dp"
android:visibility="gone" /> android:visibility="gone" />
</FrameLayout> </FrameLayout>