|
void | onCreate (Bundle savedInstanceState) |
|
Definition at line 12 of file DemoActivity.java.
◆ onClick()
void org.skia.skottie.DemoActivity.onClick |
( |
View |
view | ) |
|
|
inline |
Definition at line 35 of file DemoActivity.java.
35 {
36 switch(view.getId()) {
38 for (SkottieView
s : skotties) {
39 if (playing) {
41 } else {
43 }
44 }
45 playing = !playing;
46 break;
48 for (SkottieView
s : skotties) {
50 }
51 break;
52 }
53 }
◆ onCreate()
void org.skia.skottie.DemoActivity.onCreate |
( |
Bundle |
savedInstanceState | ) |
|
|
inlineprotected |
Definition at line 17 of file DemoActivity.java.
17 {
18 super.onCreate(savedInstanceState);
19 setContentView(
R.layout.demo_layout);
20
21 LinearLayout skottieContainer = findViewById(
R.id.skottie_container);
22 for (
int i = 0;
i < skottieContainer.getChildCount();
i++) {
23 SkottieView
s = (SkottieView)skottieContainer.getChildAt(
i);
26 }
27
28 Button play = findViewById(
R.id.play);
29 play.setOnClickListener(this);
30 Button
reset = findViewById(
R.id.reset);
31 reset.setOnClickListener(
this);
32 }
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/DemoActivity.java