B4A Class PhotoView class

Discussion in 'Additional libraries, classes and official updates' started by icefairy333, Oct 12, 2015.

  1. icefairy333

    icefairy333 Active Member Licensed User

    Attached Files:

  2. icefairy333

    icefairy333 Active Member Licensed User

    Code:
    'matrix,fitXY,fitStart,fitCenter,fitEnd,center,centerCrop,centerInside
    Public Sub setScaleType(Scale As String)
        jopv.RunMethod(
    "setScaleType"Array(Scale))
    End Sub
     
    Last edited: Oct 13, 2015
  3. wimpie3

    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).
     
  4. icefairy333

    icefairy333 Active Member Licensed User

    Code:
    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
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice