You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin/src/main/java/app/rive/runtime/kotlin/RiveAnimationView.kt
+54-1Lines changed: 54 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,17 @@ import android.util.AttributeSet
5
5
importandroid.view.View
6
6
importandroidx.annotation.RawRes
7
7
importapp.rive.runtime.kotlin.core.*
8
+
importcom.android.volley.NetworkResponse
9
+
importcom.android.volley.ParseError
10
+
importcom.android.volley.Request
11
+
importcom.android.volley.Response
12
+
importcom.android.volley.toolbox.HttpHeaderParser
13
+
importcom.android.volley.toolbox.Volley
14
+
importjava.io.IOException
15
+
importjava.io.UnsupportedEncodingException
8
16
importjava.util.*
9
17
18
+
10
19
/**
11
20
* This view aims to provide the most straightforward way to get rive animations into your application.
12
21
*
@@ -22,6 +31,7 @@ import java.util.*
22
31
*
23
32
* Xml [attrs] can be used to set initial values for many
24
33
* - Provide the [resource][R.styleable.RiveAnimationView_riveResource] to load as a rive file, this can be done later with [setRiveResource] or [setRiveFile].
34
+
* - Alternatively, provide the [url][R.styleable.RiveAnimationView_riveUrl] to load as a rive file over HTTP.
25
35
* - Determine the [artboard][R.styleable.RiveAnimationView_riveArtboard] to use, this defaults to the first artboard in the file.
26
36
* - Enable or disable [autoplay][R.styleable.RiveAnimationView_riveAutoPlay] to start the animation as soon as its available, or leave it to false to control its playback later. defaults to enabled.
27
37
* - Configure [alignment][R.styleable.RiveAnimationView_riveAlignment] to specify how the animation should be aligned to its container.
0 commit comments