Advertisement
Guest User

Untitled

a guest
Nov 13th, 2020
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. //On CreateCode
  2. progressbar1.setProgressDrawable(getDrawable(R.drawable.progress));
  3.  
  4. <?xml version="1.0" encoding="utf-8" ?>
  5. <layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="120.0" android:toDegrees="140.0" android:pivotX="50.0%" android:pivotY="50.0%">
  6. <item android:id="@android:id/background">
  7. <shape android:shape="ring" android:innerRadiusRatio="2.3" android:thicknessRatio="15.0" android:useLevel="false" android:angle="0.0" android:type="sweep">
  8. <solid android:color="#E0E0E0" />
  9. </shape>
  10. </item>
  11. <item android:id="@android:id/progress">
  12. <rotate android:fromDegrees="270.0" android:toDegrees="270.0">
  13. <shape android:shape="ring" android:innerRadiusRatio="2.3" android:thicknessRatio="15.0" android:angle="0.0" android:type="sweep">
  14. <solid android:color="#f44336" />
  15. </shape>
  16. </rotate>
  17. </item>
  18. </layer-list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement