Search in sources :

Example 6 with WoWoViewPagerAdapter

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);
}
Also used : WoWoViewPagerAdapter(com.nightonke.wowoviewpager.WoWoViewPagerAdapter)

Example 7 with WoWoViewPagerAdapter

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);
}
Also used : WoWoViewPagerAdapter(com.nightonke.wowoviewpager.WoWoViewPagerAdapter)

Example 8 with WoWoViewPagerAdapter

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);
}
Also used : WoWoViewPagerAdapter(com.nightonke.wowoviewpager.WoWoViewPagerAdapter)

Example 9 with WoWoViewPagerAdapter

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);
}
Also used : ViewAnimation(com.nightonke.wowoviewpager.ViewAnimation) WoWoViewPagerAdapter(com.nightonke.wowoviewpager.WoWoViewPagerAdapter) WoWoScaleAnimation(com.nightonke.wowoviewpager.WoWoScaleAnimation)

Example 10 with WoWoViewPagerAdapter

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);
}
Also used : WoWoViewPagerAdapter(com.nightonke.wowoviewpager.WoWoViewPagerAdapter)

Aggregations

WoWoViewPagerAdapter (com.nightonke.wowoviewpager.WoWoViewPagerAdapter)13 ViewAnimation (com.nightonke.wowoviewpager.ViewAnimation)4 WoWoAlphaAnimation (com.nightonke.wowoviewpager.WoWoAlphaAnimation)1 WoWoScaleAnimation (com.nightonke.wowoviewpager.WoWoScaleAnimation)1 WoWoTextViewSizeAnimation (com.nightonke.wowoviewpager.WoWoTextViewSizeAnimation)1 WoWoTranslationAnimation (com.nightonke.wowoviewpager.WoWoTranslationAnimation)1