I am using Photoview Library in my project. I need to setPadding in Imageview with Zoom.
When I use with left and top padding, It working Perfectly. It also move image from left and top as I wish.
mPhotoView.setPadding(150, 150, 0, 0);
But, When I apply right padding and bottom padding , it apply padding but not automatically move from current place.
mPhotoView.setPadding(0, 0, 150, 150); //Issue here.
You need to use
requestLayout()
after setting padding in yourmPhotoView
SAMPLE CODE
Please check the output of the above code https://www.youtube.com/watch?v=828XI6ydNdY
UPDATE
as per your below comment
Actually Your padding Right and Bottom is working after setting padding you need to scroll your
mPhotoView
Like below code