I want to display animation in dialog.
when the dialog is opened the animation start, i want only animation and text "Loading..." without title ,buttons or background to the dialog but alpha black to the backwards layout.
My Layout code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ff111214">
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true">
    <ImageView
        android:id="@+id/loader_image"
        android:layout_width="120dp"
        android:layout_height="120dp"
        android:layout_centerHorizontal="true"
        android:src="@drawable/loader"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/wait"
        android:layout_below="@id/loader_image"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="13dp"
        android:textColor="#ffffff"/>
    </RelativeLayout>
</RelativeLayout>
My animation code:
    <rotate android:duration="500"
    android:fromDegrees="0"
    android:pivotX="50%"
    android:pivotY="50%"
    android:repeatCount="55"
    android:repeatMode="restart"
    android:startOffset="0"
    android:toDegrees="360"/>
 
     
    
