I set the panel background with BitmapDrawable.
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirRootExternal,"pic1.jpg"))
bd.Gravity = Gravity.FILL
panel1.Background = bd
No problem so far. I move to another page, I change layout. When I switch to the previous layout again, the panel appears black. The image that I set as the background is not visible. How can I solve this problem?
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirRootExternal,"pic1.jpg"))
bd.Gravity = Gravity.FILL
panel1.Background = bd
No problem so far. I move to another page, I change layout. When I switch to the previous layout again, the panel appears black. The image that I set as the background is not visible. How can I solve this problem?