@Star-Dust I've found a mistake on B4J sample, SD_ImageView line 216 'zm' assigned before a declaration, so I added this line on Class_Globals under B4J conditionals and it now compile and runs well:
Code:
Private zm As Boolean = False ' Added this line
The full Class_Globals:
Code:
Sub Class_Globals
Private mEventName As String 'ignore
Private mCallBack As Object 'ignore
' Zoom
#IF B4A
Private mBase As Panel
Public NatObject As ImageView
Private zm As Boolean = False
Private StartX,StartY,LastX,LastY As Int
Private Wd,Ht As Int
Private PointerStartID=-1,PointerLastID=-1 As Int
#ELSE IF B4I
Private mBase As Panel
Public NatObject As ImageView
Private Multi As Panel
Private zm As Boolean = False
Private Wd,Ht As Int
Private NativeMe As NativeObject
Private fingers As Map
Type FingerData (StartX As Float, StartY As Float,LastX As Float, LastY As Float)
Private Lastclick As Long = -1
#ELSE IF B4J
Private mBase As Pane
Public NatObject As ImageView
Private zm As Boolean = False ' Added this line
#END IF
End Sub
This is a power of zipped libraries, not protected but exposes code and all files, if the user find a bug, just open a library zip (I open with 7zip or WinRar) and correct the bug.
Also I had to enlarge on the designer the custom view because is too small, on B4A you used Gravity.Fill but on B4J the image is larger than the custom view and do not resize.
Finally the zoom is possible even on B4J? I know that desktop has no gestures, so pinch to zoom as Android, but it is possible to change the zoom by code? Even is very good have a zoom with mouse whell, is that possible? You can add it?
I think this help you, many thanks for this library.