B4A Class PhotoView class

icefairy333

Active Member
Licensed User
B4X:
'matrix,fitXY,fitStart,fitCenter,fitEnd,center,centerCrop,centerInside
Public Sub setScaleType(Scale As String)
    jopv.RunMethod("setScaleType", Array(Scale))
End Sub
 
Last edited:

wimpie3

Well-Known Member
Licensed User
There seems to be a giant memory leak with this library. When used together with AHViewPager, the photo viewer is never released from memory (it doesn't seem to detect when the view is removed from the viewpager).
 

icefairy333

Active Member
Licensed User
There seems to be a giant memory leak with this library. When used together with AHViewPager, the photo viewer is never released from memory (it doesn't seem to detect when the view is removed from the viewpager).
B4X:
dim pv as photoview
pv.init
'and so on

'when you want remove it remember set it to null
pv.removeview
pv=null
just try this maybe useful
 
Top