blob: 3d1f70764811221dcbc81f5f018049c43f2570e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
import android.view 0.21
import android.widget 0.21
import android.view.animation 0.21
RelativeLayout {
ImageView {
imageResource: 2130837555 // TODO: R.drawable.awesome
RelativeLayout.centerInParent: true
// animation: Animation {
// id: anim
// resource: 2130968582 // TODO: r.anim.awesome
// }
animation: AnimationSet {
id: anim
shareInterpolator: false
ScaleAnimation {
duration: 4800
repeatMode: Animation.REVERSE
repeatCount: Animation.INFINITE
fromXScale: 0.5
fromYScale: 0.5
toXScale: 1.0
toYScale: 1.0
pivotX: 0.5 // "50%"
pivotY: 0.5 // "50%"
pivotXType: Animation.RELATIVE_TO_SELF
pivotYType: Animation.RELATIVE_TO_SELF
interpolator: AccelerateDecelerateInterpolator { }
}
RotateAnimation {
duration: 3200
repeatCount: Animation.INFINITE
fromDegrees: 0
toDegrees: -360
pivotX: 0.5 // "50%"
pivotY: 0.5 // "50%"
pivotXType: Animation.RELATIVE_TO_SELF
pivotYType: Animation.RELATIVE_TO_SELF
interpolator: LinearInterpolator { }
}
}
}
}
|