http://stackoverflow.com/questions/27213381/how-to-create-circular-progressbar-in-android
요런 모양의 프로그래스바를 만들고 싶은데, 그라데이션은 아래의 코드로 넣었는데, 귀퉁이를 깍으려고 넣은 corners 는 동작을 안하네요.
혹시 그라데이션이랑 귀퉁이 깍인 프로그래스바를 만드는 방법이나 라이브러리 아는 분 계신가요?
<?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="5dp"
android:useLevel="true">
<gradient
android:angle="0"
android:centerColor="#7f97f5"
android:endColor="#4dd1cf"
android:startColor="#bd5df5"
android:type="sweep"
android:useLevel="false"/>
<corners android:radius="10dp"/>
</shape>
</rotate>
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="100dp"
android:layout_height="100dp"
android:indeterminate="false"
android:max="100"
android:progressDrawable="@drawable/circular_progress_bar_foreground"/>