Hey guys, got a bit of a problem that I can't really seem to google as it's hard to explain.
My app is basically a webview, with a FooterView (my own View) and another (AdMob) view below it. I've disabled the title bar and used FLAG_FULLSCREEN so I get the whole 480px height.
My problem is that everything is aligned nicely on the screen until I press up or down on the Dpad, the orange highlight jumps to the first webview (totally fine), but the entire screen shifts DOWN as if everything was being drawn below a title bar (which isn't there) - however if i remove FEATURE_NO_TITLE and use the app then the problem goes away.
Things I've tried include swallowing keypresses (to no avail), different Layouts (again, to no avail), blank views to 'prop up' the webview (again nothing).
If I remove the main WebView from the screen (and leave just a blank space w/ footer and ad) - the problem goes away.
Here is the XML: -
Another bizarre thing is if I set the height of the first webview to 'fill_parent' and align it to parent_bottom, then the problem goes away, but I lose half the webview behind the footer and ad, so no good :/
Anyone able to help?
Here is what I mean, a couple of screenshots from the emulator. (the little arrow is another view, but the behaviour is the same with or without it)