Posted: Thu Jul 30, 2009 6:09 pm Post subject: How to show small View?
I need a little help from people with expirience. I hope it's easy.
I just want to show new View (creating it without XML layouts) above main program's view.
It's to integrate AdMob.com ad block:
I wrote such code:
AdView ad = new AdView(this);
ad.layout(10, 10, 100, 100);
ad.setVisibility(View.VISIBLE);
ad.bringToFront();
ad.requestFocus();
ad.invalidate();
As you see - nothing helped, no window visible
What do I make incorrectly?
Thanks!
P.S. I made in in Activity's onCreate(Bundle), but I tried in other locations too.