Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
Private Pane1 As B4XView
Private MediaManager As SimpleMediaManager
End Sub
'You can add more parameters here.
Public Sub Initialize As Object
Return Me
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("ImagePane")
MediaManager.Initialize
MediaManager.MaxMediaCacheSize = 0
MediaManager.ClearMedia(Pane1) 'clear old image
MediaManager.TrimMediaCache 'remove image from cahe
MediaManager.SetMediaWithExtra(Pane1, Main.MainImage, "", CreateMap(MediaManager.REQUEST_ZOOMIMAGEVIEW: True))
B4XPages.SetTitle(Me, "Large Image")
End Sub