mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-08 15:57:29 +00:00
fix picture zooming issue
Co-Authored-By: Ammar Githam <ammargitham786@gmail.com>
This commit is contained in:
parent
99431fd077
commit
23a5ae8405
@ -1022,6 +1022,8 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im
|
|||||||
// binding.postImage.setOnClickListener(v -> toggleDetails());
|
// binding.postImage.setOnClickListener(v -> toggleDetails());
|
||||||
final AnimatedZoomableController zoomableController = AnimatedZoomableController.newInstance();
|
final AnimatedZoomableController zoomableController = AnimatedZoomableController.newInstance();
|
||||||
zoomableController.setMaxScaleFactor(3f);
|
zoomableController.setMaxScaleFactor(3f);
|
||||||
|
zoomableController.setGestureZoomEnabled(true);
|
||||||
|
zoomableController.setEnabled(true);
|
||||||
binding.postImage.setZoomableController(zoomableController);
|
binding.postImage.setZoomableController(zoomableController);
|
||||||
binding.postImage.setTapListener(new GestureDetector.SimpleOnGestureListener() {
|
binding.postImage.setTapListener(new GestureDetector.SimpleOnGestureListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user