title: Progress dialogue has white background on Lollipop Devices ,
body: <p>I am migrating my application on Android 5.0 i.e. Lollipop devices , I have problem regarding progress dialog , It work perfectly on pre lollipop devices , but on lollipop it has white background  as shown in image <img src="https://i.stack.imgur.com/db50p.png" alt="enter image description here"></p>
  
  <p>But in pre lollipop devices it is of transparent background 
  <img src="https://i.stack.imgur.com/oWw9e.png" alt="enter image description here"></p>
  
  <p>Below is my code : </p>
  
  <p>progress.xml in layout </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;RelativeLayout 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="@android:color/transparent" &gt;
  
  
  &lt;ProgressBar
          android:id="@+id/progressBar3"
          style="?android:attr/progressBarStyleHorizontal"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
         android:background="@android:color/transparent"
          android:layout_centerHorizontal="true"
  
          android:indeterminate="true"
          android:indeterminateDrawable="@drawable/myprogress"
          android:minHeight="48dp" /&gt;
     &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>myprogress.xml in drawable</p>
  
  <p></p>
  
  <pre><code>&lt;shape
      android:shape="oval"
      android:useLevel="false" &gt;
      &lt;size
          android:height="48dip"
          android:width="48dip" /&gt;
  
      &lt;gradient
          android:centerColor="#ff001100"
          android:centerY="0.50"
          android:endColor="#ffffffff"
          android:startColor="#ff000000"
          android:type="sweep"
          android:useLevel="false" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p></p>
  
  <p>and in Java i am using like this </p>
  
  <pre><code>public ProgressDialog mProgressDialog;
  
    if (mProgressDialog != null &amp;&amp; mProgressDialog.isShowing()) {
              mProgressDialog.cancel();
          }
  
          mProgressDialog = new ProgressDialog(context);
          mProgressDialog.setCancelable(false);
  
          mProgressDialog.show();
          mProgressDialog.setContentView(R.layout.progress);
  </code></pre>