How to show small View?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to show small View?

Postby vadimz » Thu Jul 30, 2009 5:09 pm

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.
vadimz
Developer
Developer
 
Posts: 44
Joined: Thu Jul 30, 2009 5:04 pm
Location: Moldova

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot], Yahoo [Bot] and 6 guests