iOS Question LoadBitmap works in b4a not in b4i

John Woodsmall

Active Member
Licensed User
I need to set the background from an image of the main page(activity)

Activity.SetBackgroundImage(File.DirAssets,"blue.jpg"))

But this is not in b4i?
How do I set the background of the main page to an image file?
 

John Woodsmall

Active Member
Licensed User
ok I did the imageview (it covers the whole page...)
what I have now is:

Page1
.RootPanel.Color = Colors.Magenta

NavControl.ShowPage(Page1)

Page1.RootPanel.LoadLayout("AstroMatch")


how do I get the imageview to be the backgound? like in the b4a?

sorry if this is a stupid question...but I am forced to get this right.
it is wonderful that I have come this far with your stuff, so thanks!
john
 

John Woodsmall

Active Member
Licensed User
Put the ImageView onto the layout, add the image file to the ImageView and set it to back.

where do I set it to "back" ?
 

John Woodsmall

Active Member
Licensed User
ok...I did that, but the image fills the screen, I need it as the background to the main page.
Can this be done?
the question is, can an image be a background? if so how?
this was so easy in b4a.
 

John Woodsmall

Active Member
Licensed User
ok
What I found out was that I had a color for the main page.
I switched it to transparent and NOW the back image shows thru out the app.
it is still alittle short of the top.
how do I upload the layout file?
my project is called "AstroMatch" so what is the layout file name?
(I tried several of the possible names...but I got not allowed in the "Upload File" button to the right on this page.)

where is it?
 

Attachments

John Woodsmall

Active Member
Licensed User
I tried the scipt and it did not work.
Unknown member
also set the parameters 0,0,0,0 same look did totally fill the background.
 
Top