use of com.nightonke.wowoviewpager.WoWoViewPagerAdapter in project WoWoViewPager by Nightonke.
the class WoWoBackgroundColorAnimationActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_wowo_background_color_animation);
init();
wowo = (WoWoViewPager) findViewById(R.id.wowo_viewpager);
adapter = new WoWoViewPagerAdapter(getSupportFragmentManager());
adapter.setFragmentsNumber(5);
adapter.setColorRes(R.color.white);
wowo.setAdapter(adapter);
setPageTV(wowo);
setAnimation(findViewById(R.id.test1), ColorChangeType.RGB);
setAnimation(findViewById(R.id.test2), ColorChangeType.HSV);
}
use of com.nightonke.wowoviewpager.WoWoViewPagerAdapter in project WoWoViewPager by Nightonke.
the class WoWoLayerListColorAnimationActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_wowo_layer_list_color_animation);
init();
wowo = (WoWoViewPager) findViewById(R.id.wowo_viewpager);
adapter = new WoWoViewPagerAdapter(getSupportFragmentManager());
adapter.setFragmentsNumber(5);
adapter.setColorRes(R.color.white);
wowo.setAdapter(adapter);
setPageTV(wowo);
setAnimation(findViewById(R.id.test1), ColorChangeType.RGB);
setAnimation(findViewById(R.id.test2), ColorChangeType.HSV);
}
use of com.nightonke.wowoviewpager.WoWoViewPagerAdapter in project WoWoViewPager by Nightonke.
the class AppIntroExampleActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_app_intro_example);
wowo = (WoWoViewPager) findViewById(R.id.wowo_viewpager);
adapter = new WoWoViewPagerAdapter(getSupportFragmentManager());
adapter.setFragmentsNumber(4);
adapter.setColorRes(R.color.black_background);
wowo.setAdapter(adapter);
}
use of com.nightonke.wowoviewpager.WoWoViewPagerAdapter in project WoWoViewPager by Nightonke.
the class WoWoScaleAnimationActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_wowo_scale_animation);
init();
wowo = (WoWoViewPager) findViewById(R.id.wowo_viewpager);
adapter = new WoWoViewPagerAdapter(getSupportFragmentManager());
adapter.setFragmentsNumber(5);
adapter.setColorRes(R.color.white);
wowo.setAdapter(adapter);
setPageTV(wowo);
ViewAnimation animation = new ViewAnimation(findViewById(R.id.test));
animation.addPageAnimaition(new WoWoScaleAnimation(0, 0f, 1f, 0.5f, 0.5f, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoScaleAnimation(1, 0f, 1f, 4f, 4f, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoScaleAnimation(2, 0f, 0.5f, 4f, 4f, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoScaleAnimation(2, 0.5f, 1f, 0.5f, 0.5f, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoScaleAnimation(3, 0f, 0.5f, 2f, 1f, easeType, useSameEaseTypeBack));
animation.addPageAnimaition(new WoWoScaleAnimation(3, 0.5f, 1f, 1f, 2f, easeType, useSameEaseTypeBack));
wowo.addAnimation(animation);
}
use of com.nightonke.wowoviewpager.WoWoViewPagerAdapter in project WoWoViewPager by Nightonke.
the class WoWoShapeColorAnimationActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_wowo_shape_color_animation);
init();
wowo = (WoWoViewPager) findViewById(R.id.wowo_viewpager);
adapter = new WoWoViewPagerAdapter(getSupportFragmentManager());
adapter.setFragmentsNumber(5);
adapter.setColorRes(R.color.white);
wowo.setAdapter(adapter);
setPageTV(wowo);
setAnimation(findViewById(R.id.test1), ColorChangeType.RGB);
setAnimation(findViewById(R.id.test2), ColorChangeType.HSV);
}
Aggregations