From ae1c8676bae3f6631b01a736fb49c58345be241b Mon Sep 17 00:00:00 2001 From: NudeDude Date: Wed, 10 Oct 2018 21:43:40 +0200 Subject: [PATCH] layout fix --- app/build.gradle | 3 ++- .../nuclearfog/twidda/window/ImageDetail.java | 1 + app/src/main/res/layout/item_dm.xml | 8 ++++---- app/src/main/res/layout/page_tweet.xml | 17 +++++++++-------- build.gradle | 7 ++++++- gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 73a9b19b..b61f2989 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,11 +29,12 @@ android { dependencies { implementation 'org.twitter4j:twitter4j-core:4.0.7' implementation 'com.github.QuadFlask:colorpicker:0.0.13' - implementation 'com.github.NudeDude:ZoomImageView:1.0' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:exifinterface:28.0.0' implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.android.support:support-vector-drawable:28.0.0' implementation 'com.android.support:design:28.0.0' + + implementation(name:'zoomview', ext:'aar') } \ No newline at end of file diff --git a/app/src/main/java/org/nuclearfog/twidda/window/ImageDetail.java b/app/src/main/java/org/nuclearfog/twidda/window/ImageDetail.java index 04f57f15..8ee8a5a5 100644 --- a/app/src/main/java/org/nuclearfog/twidda/window/ImageDetail.java +++ b/app/src/main/java/org/nuclearfog/twidda/window/ImageDetail.java @@ -64,6 +64,7 @@ public class ImageDetail extends AppCompatActivity implements OnImageClickListen int destHeight = (int) (image.getHeight() / ratio); image = Bitmap.createScaledBitmap(image, 960, destHeight, false); + zoomImage.reset(); zoomImage.setImageBitmap(image); } } \ No newline at end of file diff --git a/app/src/main/res/layout/item_dm.xml b/app/src/main/res/layout/item_dm.xml index d1839c35..65cedd5c 100644 --- a/app/src/main/res/layout/item_dm.xml +++ b/app/src/main/res/layout/item_dm.xml @@ -87,17 +87,17 @@ diff --git a/app/src/main/res/layout/page_tweet.xml b/app/src/main/res/layout/page_tweet.xml index 770b51fc..9f240e68 100644 --- a/app/src/main/res/layout/page_tweet.xml +++ b/app/src/main/res/layout/page_tweet.xml @@ -33,14 +33,6 @@ android:paddingLeft="@dimen/layout_margin" android:paddingRight="@dimen/layout_margin"> - - @@ -105,6 +98,14 @@ + +