<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@drawable/progressdialog">

    <ProgressBar
        android:id="@+id/progressBar"
        android:layout_width="282dp"
        android:layout_height="wrap_content"
        android:indeterminateDrawable="@drawable/my_progress_bar_animation"
        android:minHeight="300dp" />

</FrameLayout>