Manual imageview adding

Kamac

Active Member
Licensed User
Longtime User
Hi i'm having problems with imageview manual adding...

i have this:

B4X:
Dim achievmentb As ImageView   
achievmentb.Initialize("achievmentb")
achievmentb.Gravity = Gravity.fill
achievmentb.Enabled = True
achievmentb.Width = 100
achievmentb.Height = 50

and i get error: java.lang.NullPointerException
on: achievmentb.Width = 10
 
Top