Another "Dummies" Question

Smee

Well-Known Member
Licensed User
Longtime User
I am testing bits of code to try and understand the order of things etc and I do not know why this bit of code does not work as i expect

B4X:
Dim P As Panel
p.Initialize("p")
 CustName=Value
 Log(CustName)
 p.AddView(P,0,0,100%x,100%y)
 p.SetBackgroundImage(LoadBitmap(File.DirAssets, "small_img_handler3.jpeg"))
p.BringToFront


The image or panel does not show on the screen but the code does execute ok

What am i missing please

Thanks
 

Smee

Well-Known Member
Licensed User
Longtime User
Thank you

The actual working code ssnippet now reads

B4X:
Dim P As Panel
p.Initialize("p")
 CustName=Value
 Log(CustName)
 p.SetBackgroundImage(LoadBitmap(File.DirAssets, "small_img_handler3.jpeg"))
 Activity.AddView(P,0,0,100%x,100%y)

Thanks again Admac

i might get a whole collection of these and post em for other newbies in Android:D
 
Upvote 0
Top