Dynamic Text
You may add text above an element just like this.

Download Sample File
You can download a sample file from SVGA-Samples to try.
Step
Load animation as usual
// Setup a SVGAImageView by yourself. try { parser.parse(new URL("https://github.com/yyued/SVGA-Samples/blob/master/kingset.svga?raw=true"), new SVGAParser.ParseCompletion() { @Override public void onComplete(@NotNull SVGAVideoEntity videoItem) { } @Override public void onError() { } } ); } catch (Exception e) { System.out.print(true); }
Setup text
try { parser.parse(new URL("https://github.com/yyued/SVGA-Samples/blob/master/kingset.svga?raw=true"), new SVGAParser.ParseCompletion() { @Override public void onComplete(@NotNull SVGAVideoEntity videoItem) { SVGADynamicEntity dynamicEntity = new SVGADynamicEntity(); TextPaint textPaint = new TextPaint(); textPaint.setColor(Color.WHITE); textPaint.setTextSize(28); dynamicEntity.setDynamicText("Pony send Kitty flowers.", textPaint, "banner"); SVGADrawable drawable = new SVGADrawable(videoItem, dynamicEntity); testView.setImageDrawable(drawable); testView.startAnimation(); } @Override public void onError() { } } ); } catch (Exception e) { System.out.print(true); }
ImageKey
The imageKey is the name of png file, ask your designer tell you the file name.
For example, the layer png image file name is xxx.png, imageKey is xxx. File name should always use English name, do not use Chinese or Japanese etc.