How to Create a circular progressbar in Android which rotates on it?
Here are my two solutions. Short answer: Instead of creating a layer-list, I separated it into two files. One for ProgressBar and one for its background. This is the ProgressDrawable file (@drawable folder): circular_progress_bar.xml <?xml version=”1.0″ encoding=”utf-8″?> <rotate xmlns:android=”http://schemas.android.com/apk/res/android” android:fromDegrees=”270″ android:toDegrees=”270″> <shape android:innerRadiusRatio=”2.5″ android:shape=”ring” android:thickness=”1dp” android:useLevel=”true”><!– this line fixes the issue for lollipop api 21 … Read more