mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 10:20:51 +02:00
Add animations
- right to left swipe - left to right swipe - top down swipe
This commit is contained in:
parent
0c3a267d62
commit
68cf994c41
4 changed files with 33 additions and 3 deletions
10
app/src/main/res/anim/left_right.xml
Normal file
10
app/src/main/res/anim/left_right.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:fromXDelta="-75%p"
|
||||
android:toXDelta="0%p"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:duration="100"/>
|
||||
|
||||
</set>
|
10
app/src/main/res/anim/right_left.xml
Normal file
10
app/src/main/res/anim/right_left.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:fromXDelta="75%p"
|
||||
android:toXDelta="0%p"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:duration="100"/>
|
||||
|
||||
</set>
|
10
app/src/main/res/anim/top_down.xml
Normal file
10
app/src/main/res/anim/top_down.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:fromYDelta="-75%p"
|
||||
android:toYDelta="0%p"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:duration="100"/>
|
||||
|
||||
</set>
|
Loading…
Add table
Add a link
Reference in a new issue