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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…