iOS Question LoadBitmap works in b4a not in b4i

John Woodsmall

Active Member
Licensed User
Longtime 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
Longtime 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
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime 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" ?
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime 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.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is not possible to share those links. They expire after 10 minutes.

Check the anchors. It should look like:
SS-2015-01-12_11.43.51.png
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime 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

  • Astro_Match_Iphone002.gif
    Astro_Match_Iphone002.gif
    12.3 KB · Views: 268
  • Astro_Match_Iphone003.gif
    Astro_Match_Iphone003.gif
    38.5 KB · Views: 287
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime 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.
 
Upvote 0
Top