Hi,
i am trying to place Admob Ads on my apps (on the bottom). It appears fine on my phone with a resolution of 320 x 480. but when i view my app on my friends phone with a resolution of 480 x 854, the ads is shown outside the screen area, it gets cut about 1/3.
how to place the ads correctly so it appears at the bottom of the screen correctly?
this is the code i am using to place the ads.
Thanks,
abhishek
i am trying to place Admob Ads on my apps (on the bottom). It appears fine on my phone with a resolution of 320 x 480. but when i view my app on my friends phone with a resolution of 480 x 854, the ads is shown outside the screen area, it gets cut about 1/3.
how to place the ads correctly so it appears at the bottom of the screen correctly?
this is the code i am using to place the ads.
B4X:
'<Ads>
Dim AdTop As Long
AdTop = Activity.Height - 50
AdView1.Initialize("Ad", "<ID>") 'publisher id that you received from AdMob.
Activity.AddView(AdView1, 0dip, AdTop, 320dip, 50dip) 'previously the height was 48dip. Now it is 50dip.
AdView1.LoadAd 'loads an ad
'</Ads>
Thanks,
abhishek