Note that there are some explanatory texts on larger screens.

plurals
  1. POAdview (admob) with asynchronous data loading
    primarykey
    data
    text
    <p>I have an activity where the ads are populated over the dynamic table populated from java code, this table has images which are loaded from network asynchronously. When I don't include ad everything works as expected for me. But when I include adview as well the images which loads from network asynchronously it hangs UI until the images are loaded from network.</p> <p>I could not understand the behavior, Can you please give me solution where the images should load asynchronously along with adview.</p> <p>Below is my activity code :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:id="@+id/linearLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adSize="BANNER" ads:adUnitId="********" ads:loadAdOnCreate="true" /&gt; &lt;ScrollView android:id="@+id/scroll1" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TableLayout android:id="@+id/table_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TableRow&gt; &lt;TextView android:id="@+id/left_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0" android:gravity="left|center_vertical" android:padding="5dip" android:text="Code" /&gt; &lt;TextView android:id="@+id/middle_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="right|center_vertical" android:padding="5dip" android:text="Name of Company" /&gt; &lt;TextView android:id="@+id/right_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0" android:gravity="right|center_vertical" android:padding="5dip" android:text="1.3" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Thanks </p> <p>Amandeep</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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