title: android.view.InflateException: Binary XML file line #99: Binary XML file line #99: Error inflating class android.widget.ProgressBar
body: <p>I'm trying to add Progressbar in my xml file. This progressbar will be shown as soon as user enters data in the three fields and clicks on "Submit" button and then new Activity will start.</p>
  
  <p>Here's Logcat main error line</p>
  
  <blockquote>
    <p>Unable to start activity ComponentInfo{com.example.hadithapp/com.example.hadithapp.AddHadithDetailActivity}: android.view.InflateException: Binary XML file line #99: Binary XML file line #99: Error inflating class android.widget.ProgressBar</p>
  </blockquote>
  
  <p>Here's the progressbar xml code</p>
  
  <pre><code>&lt;ProgressBar
      android:id="@+id/interminate_progress_bar"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:indeterminate="true"
      android:visibility="visible"
      android:theme="@style/ProgressBarTheme"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintBottom_toBottomOf="parent"/&gt;
  </code></pre>
  
  <p>Here's the style xml code</p>
  
  <pre><code>&lt;style name="ProgressBarTheme"&gt;
      &lt;item name="android:backgroundTint"&gt;@drawable/progress_bar_bg&lt;/item&gt;
      &lt;item name="android:background"&gt;@drawable/progress_bar_bg&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Here's @drawable/progress_bar_bg code</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle"&gt;
  
  &lt;corners android:radius="360dp"/&gt;
  &lt;solid android:color="@color/colorPrimary"/&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>I didn't know what causes ERROR. But when I removed the theme line in my progress_bar xml code, the ERROR removed.</p>
  
  <p>Still I don't get why progressbar theme doesn't work.</p>