-
Notifications
You must be signed in to change notification settings - Fork 451
/
Copy pathGIFActivity.java
40 lines (29 loc) · 1.37 KB
/
GIFActivity.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.nightonke.wowoviewpagerexample.gif;
import android.os.Bundle;
import com.nightonke.wowoviewpager.Animation.WoWoInterfaceAnimation;
import com.nightonke.wowoviewpager.gif.WoWoGifView;
import com.nightonke.wowoviewpagerexample.R;
import com.nightonke.wowoviewpagerexample.WoWoActivity;
public class GIFActivity extends WoWoActivity {
@Override
protected int contentViewRes() {
return R.layout.activity_gif;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WoWoGifView gifView0 = (WoWoGifView) findViewById(R.id.gif_0);
WoWoGifView gifView1 = (WoWoGifView) findViewById(R.id.gif_1);
WoWoGifView gifView2 = (WoWoGifView) findViewById(R.id.gif_2);
WoWoGifView gifView3 = (WoWoGifView) findViewById(R.id.gif_3);
wowo.addAnimation(gifView0)
.add(WoWoInterfaceAnimation.builder().page(0).implementedBy(gifView0).build());
wowo.addAnimation(gifView1)
.add(WoWoInterfaceAnimation.builder().page(1).implementedBy(gifView1).build());
wowo.addAnimation(gifView2)
.add(WoWoInterfaceAnimation.builder().page(2).implementedBy(gifView2).build());
wowo.addAnimation(gifView3)
.add(WoWoInterfaceAnimation.builder().page(3).implementedBy(gifView3).build());
wowo.ready();
}
}