S Smee Well-Known Member Licensed User Longtime User Aug 7, 2011 #1 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 Code: 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
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 Code: 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
A admac231 Active Member Licensed User Longtime User Aug 7, 2011 #2 You need to add the view "p" to the activity - Activity.Addview(p....) Upvote 0
S Smee Well-Known Member Licensed User Longtime User Aug 7, 2011 #3 Thank you The actual working code ssnippet now reads Code: 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 Upvote 0
Thank you The actual working code ssnippet now reads Code: 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