Skip to content

Commit 841672b

Browse files
committed
Add demo for #13
1 parent 22c6060 commit 841672b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/yy/mobile/svga/glideplugin/demo/MainActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ class MainActivity : AppCompatActivity() {
9595
Glide.with(this).load(url).into(iv_img)
9696
}
9797

98+
@SuppressLint("SetTextI18n")
9899
fun loadSVGAFromNetworkAndAddText(v: View) {
100+
tv_assets_name.text = "Add SVGADynamicEntity..."
99101
GlideApp.with(this)
100102
.asSVGA()
101103
.load("https://github.com/yyued/SVGA-Samples/blob/master/kingset.svga?raw=true")
@@ -176,6 +178,7 @@ class MainActivity : AppCompatActivity() {
176178

177179
private val svgaFiles = listOf(
178180
"alarm",
181+
"jojo_audio",
179182
"angel",
180183
"EmptyState",
181184
"heartbeat",
@@ -186,6 +189,7 @@ class MainActivity : AppCompatActivity() {
186189

187190
private val svgaResources = listOf(
188191
R.raw.alarm,
192+
R.raw.jojo_audio,
189193
R.raw.angel,
190194
R.raw.emptystate,
191195
R.raw.heartbeat,

0 commit comments

Comments
 (0)