P parijs Active Member Licensed User Longtime User Oct 21, 2011 #1 Hi, I want some help about this I have a pnlHelp.LoadLayout("ScrollView2") Whit Designer I put a Panel1 and a ImageView3 This is my code it give no error but also no Image B4X: Activity.LoadLayout("HelpScrollView") pnlHelp.LoadLayout("ScrollView2") scvHelp.Panel.LoadLayout("mus"&main.k) Dim Bitmap1 As Bitmap Panel1.Initialize("") Bitmap1.Initialize(File.DirAssets,"Icon.png") ImageView3.Initialize("") Panel1.AddView(ImageView3,5dip,5dip,65dip,65dip) ImageView3.Bitmap = Bitmap1 :sign0085:
Hi, I want some help about this I have a pnlHelp.LoadLayout("ScrollView2") Whit Designer I put a Panel1 and a ImageView3 This is my code it give no error but also no Image B4X: Activity.LoadLayout("HelpScrollView") pnlHelp.LoadLayout("ScrollView2") scvHelp.Panel.LoadLayout("mus"&main.k) Dim Bitmap1 As Bitmap Panel1.Initialize("") Bitmap1.Initialize(File.DirAssets,"Icon.png") ImageView3.Initialize("") Panel1.AddView(ImageView3,5dip,5dip,65dip,65dip) ImageView3.Bitmap = Bitmap1 :sign0085:
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2011 #2 Views added with the designer shouldn't be initialized. Upvote 0