Something is missing in the snippet below. In the input field fill in the gap to make the correct indeterminate ProgressBar with R.drawable.custom_indeterminate_drawable as progress drawable.
<ProgressBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
___________________________________
android:indeterminateOnly="true" />