title: Android- How to use another layout as progressbar
body: <p>I've seen this in lots of app , they don't use <code>ProgressDialog</code> because it doesn't let us to do anything in the app.I don't want that . 
  I've seen it in another app ,instead of <code>ProgressDialog</code> , they make the ui to show a progressbar and also we can do other work either, for example the whole ui become a progressbar and when it's done, the main ui loads . I think they use another layout when progress is activated and when it's done , the bring back the main layout . 
  I made a layout like this :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/LinearLayout01"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  &lt;LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true" &gt;
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginRight="79dp"
          android:src="@drawable/load_more" /&gt;
     &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/loading"
          android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>I was wondering how could I do that? </p>
  
  <p>thanks so much.</p>