Android Question Error checking ZoomImageView, why?

Guenter Becker

Active Member
Licensed User
Hi,
I use this code:
 For Each v As Object In pnlForm.GetAllViewsRecursive
            Dim vt As String =v.as(View).Tag
......
else if v.as(View).tag Is ZoomImageView Then
                    ' use v.as(View).tag to identify non standart view type
                    Dim zi As ZoomImageView = v
                    Dim ivtemp As ImageView = zi.ImageView
                    Log(ivtemp)
.......

and get this error on line 7:

Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Error occurred on line: 1120 (TDDBBar)
java.lang.RuntimeException: Field: _imageview not found in: anywheresoftware.b4a.BALayout
at anywheresoftware.b4a.shell.Shell$FieldCache.getField(Shell.java:923)
at anywheresoftware.b4a.shell.Shell.getField(Shell.java:697)
...


If I check zi.ImageView then the ImageView is listed in the context menue properties but the error message says no it isn't?

Any one has an Idea whats going worng.
At the end I want to check if the ZommImageViews inbuild imageview's bitmap has a Null value or not.

Thank you in advance
Guenter
 

Guenter Becker

Active Member
Licensed User
Ok,Ok, get it now and it works. Sorry
 
Upvote 0
Top