From 6a7eb2f8caa88f515b68b431d103f9dbf8f1f101 Mon Sep 17 00:00:00 2001 From: sebastian Date: Thu, 31 Oct 2024 21:05:40 +0100 Subject: [PATCH] Enable zooming on Notes --- app/build.gradle.kts | 1 + app/src/main/res/layout/activity_fullscreen_image.xml | 5 +++-- settings.gradle.kts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8707365..eec3c30 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -43,6 +43,7 @@ dependencies { implementation(libs.navigation.ui) implementation(libs.room.common) implementation("androidx.recyclerview:recyclerview:1.3.2") + implementation("com.github.chrisbanes:PhotoView:2.3.0") testImplementation(libs.junit) androidTestImplementation(libs.ext.junit) androidTestImplementation(libs.espresso.core) diff --git a/app/src/main/res/layout/activity_fullscreen_image.xml b/app/src/main/res/layout/activity_fullscreen_image.xml index d62525a..7e9e79e 100644 --- a/app/src/main/res/layout/activity_fullscreen_image.xml +++ b/app/src/main/res/layout/activity_fullscreen_image.xml @@ -3,9 +3,10 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + android:scaleType="fitCenter" /> diff --git a/settings.gradle.kts b/settings.gradle.kts index 165fb14..99f28df 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -8,6 +8,7 @@ pluginManagement { } } mavenCentral() + gradlePluginPortal() } } @@ -16,6 +17,7 @@ dependencyResolutionManagement { repositories { google() mavenCentral() + maven { url = uri("https://www.jitpack.io") } } }