1package org.skia.skottie;
6import android.view.View.OnClickListener;
8import android.widget.LinearLayout;
9import java.util.ArrayList;
12public class DemoActivity extends Activity implements OnClickListener {
14 private boolean playing =
true;
17 protected void onCreate(Bundle savedInstanceState) {
18 super.onCreate(savedInstanceState);
19 setContentView(
R.layout.demo_layout);
21 LinearLayout skottieContainer = findViewById(
R.id.skottie_container);
22 for (
int i = 0;
i < skottieContainer.getChildCount();
i++) {
28 Button play = findViewById(
R.id.play);
29 play.setOnClickListener(
this);
30 Button
reset = findViewById(
R.id.reset);
31 reset.setOnClickListener(
this);
36 switch(view.getId()) {
void onCreate(Bundle savedInstanceState)