pkpio / MDroid

Moodle for Android
https://play.google.com/store/apps/details?id=in.co.praveenkumar
GNU General Public License v3.0
36 stars 47 forks source link

Ad disappears on screen orientation change #60

Open pkpio opened 9 years ago

pkpio commented 9 years ago

On phones, when device is initially landscape (on Activity load) and then rotated to portrait, the AdView's height is not sufficient to host an Ad so, it disappears.

pkpio commented 9 years ago

One thing that works: Removing the ConfigChanges param for activities in Manifest file. But we wouldn't be doing this as we don't want to reload the whole activity!

pkpio commented 9 years ago

LoadAds() doesn't work either. Because the view is still smaller. So, something that readjusts the view sizes on rotate might work.

pkpio commented 9 years ago

A thought: Have different layouts for different screen orientations. The contents of each layout will be the same but it might however force android to recalculate Views.