Hi all!
I need a ZoomImageView which is not provided by the designer.
I need it while runtime:
Additional notes:
- b is a valid bitmap
- t is a valid string
- sv is a valid ScrollView
- w and h are valid dimensions
I got an error in this line...
... with this log info:
If I use a normal ImageView instance, then there is no error.
Where is my mistake here?
Thanks for any help in advance.
Regards ARTsoft
I need a ZoomImageView which is not provided by the designer.
I need it while runtime:
B4X:
Dim svIV As ZoomImageView
svIV.Initialize (Me, "showImage")
svIV.SetBitmap(b)
svIV.tag = t
sv.Panel.AddView(svIV.ImageView, 10dip, yPos, w, h)
Additional notes:
- b is a valid bitmap
- t is a valid string
- sv is a valid ScrollView
- w and h are valid dimensions
I got an error in this line...
B4X:
svIV.SetBitmap(b)
... with this log info:
B4X:
...
Error occurred on line: 91 (ZoomImageView)
java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
at anywheresoftware.b4a.objects.B4XViewWrapper.asViewWrapper(B4XViewWrapper.java:89)
at anywheresoftware.b4a.objects.B4XViewWrapper.SetBitmap(B4XViewWrapper.java:377)
at de.padlockblue.manager.zoomimageview._setbitmap(zoomimageview.java:136)
at java.lang.reflect.Method.invoke(Native Method)
...
If I use a normal ImageView instance, then there is no error.
Where is my mistake here?
Thanks for any help in advance.
Regards ARTsoft