mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-24 15:30:57 +01:00
add animations to image rotating via menu buttons
This commit is contained in:
parent
076559aa9d
commit
64f0bd41b1
@ -75,7 +75,7 @@ dependencies {
|
||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||
implementation 'com.caverock:androidsvg-aar:1.3'
|
||||
implementation 'com.github.tibbi:gestureviews:985ba285fb'
|
||||
implementation 'com.github.tibbi:subsampling-scale-image-view:51cb8f922c'
|
||||
implementation 'com.github.tibbi:subsampling-scale-image-view:672777cb4d'
|
||||
kapt 'com.github.bumptech.glide:compiler:4.8.0' // keep it here too, not just in Commons, else loading SVGs wont work
|
||||
|
||||
kapt 'androidx.room:room-compiler:2.0.0'
|
||||
|
@ -557,10 +557,14 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
}
|
||||
|
||||
fun rotateImageViewBy(degrees: Int) {
|
||||
mCurrentRotationDegrees = (mCurrentRotationDegrees + degrees) % 360
|
||||
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
||||
mIsSubsamplingVisible = false
|
||||
loadBitmap(degrees)
|
||||
if (mIsSubsamplingVisible) {
|
||||
mView.subsampling_view.rotateBy(degrees)
|
||||
} else {
|
||||
mCurrentRotationDegrees = (mCurrentRotationDegrees + degrees) % 360
|
||||
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
||||
mIsSubsamplingVisible = false
|
||||
loadBitmap(degrees)
|
||||
}
|
||||
}
|
||||
|
||||
private fun initExtendedDetails() {
|
||||
|
Loading…
Reference in New Issue
Block a user