Tuesday, 15 March 2011

android - How to Hide the TabPager Layout with Animation -



android - How to Hide the TabPager Layout with Animation -

im tryin hid tabs layous animation, here provided code, works on titles of tabs, im forced hide tab manually, there way can hide tabs layout animation?

tabs.setonpagechangelistener(new onpagechangelistener() { public void onpagescrollstatechanged(int state) {} @override public void onpagescrolled(int position, float positionoffset, int positionoffsetpixels) { if(position == 3){ system.out.println("position:"+position); if(badge2!=null){ badge2.setvisibility(view.gone); badge2.invalidate(); badge2=null; } translateanimation anim = new translateanimation(0, 0, 0,-100); anim.setinterpolator(new bounceinterpolator()); anim.setduration(1000); tabanimation=anim; tabs.setanimation(anim);

ok found solution, instead of tabs, used animation on viewpager

android animation

No comments:

Post a Comment