how to set progress bar in middle of emulator
<p>hi how to set progress bar middle of screen of android emulator i am using this but not working..its showing top left corner..how it will be in middle...???</p>

<pre><code>     ProgressBar
    android:id="@+id/Bar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity = "center_vertical|center_horizontal"

    and in java class

    setContentView(R.layout.loadingimage);

  ImageView mainImageView = (ImageView) findViewById(R.id.imageView);
  **ProgressBar progressBar = (ProgressBar) findViewById(R.id.Bar);**
  String imgurll=Artistspacedetailview.imgurl;
  String imageurl = imgurll;
</code></pre>
