Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Ad-mob not displaying properly in all screens properly?
    text
    copied!<p>Hi all in one of my application am using AD-mob but it is not working properly in My devices ? Here Am attached the screen shots ....!</p> <p><img src="https://i.stack.imgur.com/5QuBS.png" alt="Level 8 Android 2.3 my ad-mob display like this "> And</p> <p><img src="https://i.stack.imgur.com/pVWDC.png" alt="enter image description here"></p> <pre><code>S2 device Ad-mob display like this it addjust all the screen </code></pre> <p>and In nexus 4 the Ad- mob displaying only off the screen why this happen any one idea of this issue help this one</p> <p>am useing this code </p> <p>XML</p> <pre><code> &lt;RelativeLayout android:id="@+id/adBannerRelativeLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:visibility="gone" android:layout_alignParentBottom="true" &gt; &lt;/RelativeLayout&gt; </code></pre> <p>this is Java code </p> <pre><code> MMAdView adView = new MMAdView(activity); adView.setApid(" "); // id // Set your metadata in the MMRequest object MMRequest request = new MMRequest(); // Add the MMRequest object to your MMAdView. adView.setMMRequest(request); // Sets the id to preserve your ad on configuration changes. adView.setId(MMSDK.getDefaultAdId()); //RelativeLayout layout = (RelativeLayout) activity.findViewById(R.id.cur_mainlayout); //view = inflater.inflate(R.layout.modified_news_layout, null); adRelativeLayout = (RelativeLayout) activity.findViewById(R.id.adBannerRelativeLayout); adRelativeLayout.addView(adView, new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, UtilityClass.dynamicScalingForWidth(46))); adRelativeLayout.setVisibility(View.VISIBLE); adView.getAd(); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload