Android Tutorial Pinch Zoom and Move View tutorial

lymey

Active Member
Licensed User
Longtime User
Thanks!
Now I am back from holiday I will take a look ans see if I can figure it out.
 

mauro vicamini

Active Member
Licensed User
Longtime User
Hello Everyone!
Why this code behave different from Android 2.3 and Android 5.0?
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Dim bmp As Bitmap
    Dim imv As ImageView
    Dim vWidth,vHeight As Float
    Dim c As Int
    p.SetScreenOrientation(1)

        bmp = LoadBitmap(File.DirRootExternal & "/bioimmagini","mypic.jpg")
        vWidth = 100%x
        vHeight = 100%y
        imv.Initialize("")
        imv.Bitmap = bmp
        imv.Gravity = Gravity.FILL
        Activity.AddView(imv, 0,0,vWidth,vHeight)

        '------------------------------
        PZ.Initialize(imv,"PZ",c,1,30,1.5,True,Me)
        PZ.SetLimitBorder( False)
 
End Sub
On 2.3.6 and 4.4.2 works great (display and zoom image), on 5.0 it doesn't show nothing (the image is present in all devices in the same directory).
 
Last edited:

DrAlex

Member
Licensed User
Longtime User
Hello,

I have tried the module, and it works fine. Just a minor glitch: the tooltip of the Initialize method shows Tag as the 6th argument, while actually it is the 3rd.

Anyway, thank you very much!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…