diff options
author | cyBerta <cyberta@riseup.net> | 2018-02-13 04:41:00 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2018-02-13 04:41:00 +0100 |
commit | 1da539ddf8c0f651dd9dd363641fd7641b5b13be (patch) | |
tree | 235875feea535f7709c376e6dfc2e8002f26587f /app/src/main/res/drawable | |
parent | b37575a680cd1e345339bdc5c4c4bc1137b2e4f1 (diff) |
#8831 add a progress animation to EipFragment and don't start blocking vpn when user triggered vpn start from UI
Diffstat (limited to 'app/src/main/res/drawable')
-rw-r--r-- | app/src/main/res/drawable/progressbar_circle.xml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/progressbar_circle.xml b/app/src/main/res/drawable/progressbar_circle.xml new file mode 100644 index 00000000..5d28e05b --- /dev/null +++ b/app/src/main/res/drawable/progressbar_circle.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="utf-8"?> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/progress1"> + <rotate + android:fromDegrees="-90" + android:pivotX="50%" + android:pivotY="50%" + android:toDegrees="270"> + + <shape + android:shape="ring" + android:useLevel="true"> + <gradient + android:endColor="#c5e1a5" + android:centerColor="#c5e1a5" + android:startColor="#00ffe082" + android:type="sweep" + /> + </shape> + </rotate> + </item> + + <item android:id="@+id/progress2"> + <rotate + android:fromDegrees="0" + android:pivotX="50%" + android:pivotY="50%" + android:toDegrees="360"> + + <shape + android:shape="ring" + android:useLevel="true"> + <gradient + android:endColor="#ffcc80" + android:centerColor="#ffcc80" + android:startColor="#00ffcc80" + android:type="sweep" + /> + </shape> + </rotate> + </item> + + <item android:id="@+id/progress3"> + <rotate + android:fromDegrees="90" + android:pivotX="50%" + android:pivotY="50%" + android:toDegrees="450"> + <shape + android:shape="ring" + android:useLevel="true"> + <gradient + android:endColor="#ce93d8" + android:centerColor="#ce93d8" + android:startColor="#00ce93d8" + android:type="sweep" + /> + </shape> + </rotate> + </item> + + <item android:id="@+id/progress4"> + <rotate + android:fromDegrees="180" + android:pivotX="50%" + android:pivotY="50%" + android:toDegrees="540"> + <shape + android:shape="ring" + android:useLevel="true"> + <gradient + android:endColor="#81d4fa" + android:centerColor="#81d4fa" + android:startColor="#0081d4fa" + android:type="sweep" + /> + </shape> + </rotate> + </item> + +</layer-list>
\ No newline at end of file |