8package org.skia.jetskidemo;
11import android.content.res.Resources;
15import org.
skia.jetski.*;
16import org.skia.jetski.util.*;
17import org.skia.jetskidemo.samples.SkottieSample;
21 private float mSurfaceWidth,
30 mSurfaceWidth =
surface.getWidth();
31 mSurfaceHeight =
surface.getHeight();
37 mSample.
render(canvas, ms, 0, 0, mSurfaceWidth, mSurfaceHeight);
43 System.loadLibrary(
"jetski");
47 protected void onCreate(Bundle savedInstanceState) {
48 super.onCreate(savedInstanceState);
49 setContentView(
R.layout.activity_animation);
51 SurfaceView sv = findViewById(
R.id.surfaceView);
void onCreate(Bundle savedInstanceState)
void onSurfaceInitialized(Surface surface)
SkottieAnimationRenderer(Resources res, int resID)
void onRenderFrame(Canvas canvas, long ms)
void render(Canvas canvas, long ms, float left, float top, float right, float bottom)