1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-22 21:16:57 +00:00

fix picture zooming issue

Co-Authored-By: Ammar Githam <ammargitham786@gmail.com>
This commit is contained in:
Austin Huang 2021-04-09 09:06:53 -04:00
parent 99431fd077
commit 23a5ae8405
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -1022,6 +1022,8 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im
// binding.postImage.setOnClickListener(v -> toggleDetails());
final AnimatedZoomableController zoomableController = AnimatedZoomableController.newInstance();
zoomableController.setMaxScaleFactor(3f);
zoomableController.setGestureZoomEnabled(true);
zoomableController.setEnabled(true);
binding.postImage.setZoomableController(zoomableController);
binding.postImage.setTapListener(new GestureDetector.SimpleOnGestureListener() {
@Override