mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Updated Icon & Added Animation for Nearby (#6201)
* Applied better animation in nearby * Refactor: Reduce Duration of Rotate Animation Decreased the duration of the rotate animation from 1000ms to 500ms in `rotate.xml`, resulting in a faster rotation speed.
This commit is contained in:
parent
d32ab15d42
commit
a8e38f4329
3 changed files with 102 additions and 1 deletions
10
app/src/main/res/anim/rotate.xml
Normal file
10
app/src/main/res/anim/rotate.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rotate
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:fromDegrees="0"
|
||||
android:toDegrees="360"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
android:duration="500"
|
||||
android:repeatCount="infinite"
|
||||
android:interpolator="@android:anim/linear_interpolator"/>
|
||||
49
app/src/main/res/drawable/loading_icon.xml
Normal file
49
app/src/main/res/drawable/loading_icon.xml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<vector
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,4 A8,8 0 1,1 4,12 A8,8 0 1,5 19.42 ,15"
|
||||
android:strokeWidth="2"
|
||||
android:strokeColor="#2196F3"
|
||||
android:fillColor="#00000000"
|
||||
android:trimPathStart="0.2"
|
||||
android:trimPathEnd="1.0"/>
|
||||
</vector>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<vector
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,4 A8,8 0 1,1 4,12 A8,8 0 1,1 12,4"
|
||||
android:strokeWidth="2"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:fillColor="#00000000"
|
||||
android:trimPathStart="0.0"
|
||||
android:trimPathEnd="0.2"/>
|
||||
</vector>
|
||||
</item>
|
||||
|
||||
<item android:right="12dp">
|
||||
<rotate
|
||||
android:fromDegrees="0"
|
||||
android:toDegrees="360"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%">
|
||||
<shape android:shape="ring">
|
||||
<size
|
||||
android:width="12dp"
|
||||
android:height="2dp"/>
|
||||
<solid android:color="#2196F3"/>
|
||||
</shape>
|
||||
</rotate>
|
||||
</item>
|
||||
</layer-list>
|
||||
Loading…
Add table
Add a link
Reference in a new issue