Enable zooming on Notes

This commit is contained in:
sebastian 2024-10-31 21:05:40 +01:00
parent f5291e290f
commit 6a7eb2f8ca
3 changed files with 6 additions and 2 deletions

View File

@ -43,6 +43,7 @@ dependencies {
implementation(libs.navigation.ui) implementation(libs.navigation.ui)
implementation(libs.room.common) implementation(libs.room.common)
implementation("androidx.recyclerview:recyclerview:1.3.2") implementation("androidx.recyclerview:recyclerview:1.3.2")
implementation("com.github.chrisbanes:PhotoView:2.3.0")
testImplementation(libs.junit) testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit) androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core) androidTestImplementation(libs.espresso.core)

View File

@ -3,9 +3,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<ImageView
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/fullscreen_image_view" android:id="@+id/fullscreen_image_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:scaleType="fitCenter"/> android:scaleType="fitCenter" />
</RelativeLayout> </RelativeLayout>

View File

@ -8,6 +8,7 @@ pluginManagement {
} }
} }
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
} }
} }
@ -16,6 +17,7 @@ dependencyResolutionManagement {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven { url = uri("https://www.jitpack.io") }
} }
} }