Android Question .

walterf25

Expert
Licensed User
Longtime User
I followed the info on ads. They do come up. However, they are at the top left of the screen. How can I have the ad at the bottom center of the screen? This is just a banner ad.
=============
I am assuming it is something to do with screen height minus adheight and so forth.
Here is code
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip)' AdView1.LoadAd 'loads an ad

AdView1.LoadAd

B4X:
Activity.AddView(AdView1, 0, 100%y -50dip, 320dip, 50dip)

This code will place the ad at the bottom left of the screen.
 
Upvote 0
Top