Sorry, I received a response sending messages.
@Override protected void onSetContentView() { final FrameLayout frameLayout = new FrameLayout(this); final FrameLayout.LayoutParams frameLayoutLayoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.FILL_PARENT); final AdView adView = new AdView(this, AdSize.BANNER, "XXXXXXXXXXXXXXXXX"); adView.refreshDrawableState(); adView.setVisibility(AdView.VISIBLE); final FrameLayout.LayoutParams adViewLayoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER_HORIZONTAL);
Jawad amjad
source share