Hi,
there are two parts to this. First we have the global aspect of the 
question to which the answer is no.
Admob leveraged some internal hidden functionality which is frankly flaky 
as hell. I would suggest avoiding that. The simple thing to do would be 
deriving the Form class and implementing your own Form class. Then 
concentrate the common functionality in that Form subclass. Use a Container 
for the main functionality and place it above the ad.

The reason using SOUTH doesn't work has to do with preferred size. It will 
work worse on the device where the ad won't show at all.

SOUTH in border layout gives the component its preferred height and the 
screen width. You would have 3 options to fix that:

- Use setPreferredSize

- Override calcPreferredSize in BrowserComponent (which can gives you the 
ability to vary height between portrait/landscape)

- Use table layout and add two components with the appropriate height & 
width constraints so they fill up the form correctly.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e7803417-3a1a-48f4-b6be-43bd6698f7b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to