 <p>Before <code>listViewTweets.setAdapter(adapter);</code> insert:</p> <pre><code>listviewo.setEmptyView(findViewById(R.id.loading)); </code></pre> <p>loading is a <code>ProgressBar</code> put it inside your XML where you have the <code>ListView</code>:</p> <pre><code>&lt;ProgressBar android:id="@+id/loading" android:layout_width="wrap_content" android:layout_height="match_parent" android:indeterminateDrawable="@anim/loading_rotation" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:visibility="gone" /&gt; </code></pre> <p>by this: <code>android:indeterminateDrawable="@anim/loading_rotation"</code> i created a picture that rotate.</p> <p>to set the animation just create an <code>xml</code> file put it in a folder called <code>anim</code> : </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/iconloading" android:pivotX="50%" android:pivotY="50%" /&gt; </code></pre> <p>the loading picture is<code>iconloading</code>.</p> <p>hope this helps.</p>