ViewPager 动画效果getett

  1. package com.example.jaazy;
  2. import java.util.ArrayList;
  3. import android.support.v4.view.PagerAdapter;
  4. import android.view.View;
  5. import android.view.View.OnClickListener;
  6. import android.view.ViewGroup;
  7. /**
  8. * Create by LanYan on 2014.04.24
  9. * This is a adapter
  10. */
  11. public class ViewPagerAdapterOnClick extends PagerAdapter {
  12. private ArrayList<View> views;
  13. private ViewPageOnClick callback;
  14. private JazzyViewPager pager;
  15. public ViewPagerAdapterOnClick(JazzyViewPager pager,ArrayList<View> views,ViewPageOnClick callback) {
  16. this.setViews(views);
  17. this.callback=callback;
  18. this.pager=pager;
  19. }
  20. public void setViews(ArrayList<View> views) {
  21. if (views != null)
  22. this.views = views;
  23. else
  24. this.views = new ArrayList<View>();
  25. }
  26. public void changeItem(ArrayList<View> views) {
  27. this.setViews(views);
  28. notifyDataSetChanged();
  29. }
  30. @Override
  31. public int getItemPosition(Object object) {
  32. // TODO Auto-generated method stub
  33. return POSITION_NONE;
  34. }
  35. @Override
  36. public int getCount() {
  37. // TODO Auto-generated method stub
  38. return views.size();
  39. }
  40. @Override
  41. public boolean isViewFromObject(View arg0, Object arg1) {
  42. // TODO Auto-generated method stub
  43. return arg0 == arg1;
  44. }
  45. @Override
  46. public void destroyItem(ViewGroup container, int position, Object object) {
  47. View v = views.get(position);
  48. container.removeView(v);
  49. }
  50. public void removeUpdate(ViewGroup container){
  51. container.removeAllViews();
  52. }
  53. @Override
  54. public Object instantiateItem(ViewGroup container, final int position) {
  55. View v = views.get(position);
  56. v.setOnClickListener(new OnClickListener() {
  57. public void onClick(View v) {
  58. // TODO Auto-generated method stub
  59. callback.callbackOnClickItem(position);
  60. }
  61. });
  62. container.addView(v);
  63. pager.setObjectForPosition(v, position);
  64. return v;
  65. }
  66. public interface ViewPageOnClick{
  67. void callbackOnClickItem(int position);
  68. }
  69. }

activity:

  1. import java.util.ArrayList;
  2. import android.app.Activity;
  3. import android.os.Bundle;
  4. import android.view.View;
  5. import android.view.ViewGroup.LayoutParams;
  6. import android.widget.ImageView;
  7. import android.widget.Toast;
  8. import com.example.jaazy.JazzyViewPager.TransitionEffect;
  9. import com.example.jaazy.ViewPagerAdapterOnClick.ViewPageOnClick;
  10. public class MainActivity extends Activity implements ViewPageOnClick{
  11. private JazzyViewPager pager;
  12. private ViewPagerAdapterOnClick adapter;
  13. @Override
  14. protected void onCreate(Bundle savedInstanceState) {
  15. super.onCreate(savedInstanceState);
  16. setContentView(R.layout.activity_main);
  17. setupJazziness(TransitionEffect.Stack);
  18. }
  19. private void setupJazziness(TransitionEffect stack) {
  20. // TODO Auto-generated method stub
  21. pager=(JazzyViewPager)findViewById(R.id.jazzy_pager);
  22. adapter=new ViewPagerAdapterOnClick(pager, getViews(),this);
  23. pager.setAdapter(adapter);
  24. pager.setPageMargin(5);
  25. //压栈方式
  26. pager.setTransitionEffect(TransitionEffect.Stack);
  27. //立体内部进出
  28. //pager.setTransitionEffect(TransitionEffect.CubeIn);
  29. //立体凸出
  30. //pager.setTransitionEffect(TransitionEffect.CubeOut);
  31. //左右挤压
  32. //pager.setTransitionEffect(TransitionEffect.Accordion);
  33. //水平翻页
  34. //pager.setTransitionEffect(TransitionEffect.FlipHorizontal);
  35. //垂直翻页
  36. //pager.setTransitionEffect(TransitionEffect.FlipVertical);
  37. //上扇形摆入
  38. //pager.setTransitionEffect(TransitionEffect.RotateDown);
  39. //下扇形摆入
  40. //pager.setTransitionEffect(TransitionEffect.RotateUp);
  41. //标准
  42. //pager.setTransitionEffect(TransitionEffect.Standard);
  43. //选项卡(卡片形式)
  44. ///pager.setTransitionEffect(TransitionEffect.Tablet);
  45. //zoom in
  46. //pager.setTransitionEffect(TransitionEffect.ZoomIn);
  47. //zoom out
  48. //pager.setTransitionEffect(TransitionEffect.ZoomOut);
  49. }
  50. private ArrayList<View> getViews() {
  51. // TODO Auto-generated method stub
  52. ArrayList<View> list=new ArrayList<View>();
  53. ImageView i=new ImageView(this);
  54. LayoutParams params=new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
  55. i.setLayoutParams(params);
  56. i.setBackgroundResource(R.drawable.a);
  57. ImageView i2=new ImageView(this);
  58. i2.setLayoutParams(params);
  59. i2.setBackgroundResource(R.drawable.b);
  60. ImageView i3=new ImageView(this);
  61. i3.setLayoutParams(params);
  62. i3.setBackgroundResource(R.drawable.c);
  63. ImageView i4=new ImageView(this);
  64. i4.setLayoutParams(params);
  65. i4.setBackgroundResource(R.drawable.e);
  66. list.add(i);
  67. list.add(i2);
  68. list.add(i3);
  69. list.add(i4);
  70. return list;
  71. }
  72. @Override
  73. public void callbackOnClickItem(int position) {
  74. // TODO Auto-generated method stub
  75. Toast.makeText(this, "position:"+position, 1000).show();
  76. }
  77. }

JazzyViewPager自带动画枚举11中,如需其他动画,自己添加即可

http://club.jd.com/CommunityGroupDetail/13303117_1.html
http://club.jd.com/CommunityGroupDetail/13303483_1.html
http://club.jd.com/CommunityGroupDetail/13303343_1.html
http://club.jd.com/CommunityGroupDetail/13303279_1.html
http://club.jd.com/CommunityGroupDetail/13303484_1.html
http://club.jd.com/CommunityGroupDetail/13303310_1.html
http://club.jd.com/CommunityGroupDetail/13303486_1.html
http://club.jd.com/CommunityGroupDetail/13303456_1.html
http://club.jd.com/CommunityGroupDetail/13303513_1.html
http://club.jd.com/CommunityGroupDetail/13303432_1.html
http://club.jd.com/CommunityGroupDetail/13303433_1.html
http://club.jd.com/CommunityGroupDetail/13303344_1.html
http://club.jd.com/CommunityGroupDetail/13303165_1.html
http://club.jd.com/CommunityGroupDetail/13303119_1.html
http://club.jd.com/CommunityGroupDetail/13303515_1.html
http://club.jd.com/CommunityGroupDetail/13303372_1.html
http://club.jd.com/CommunityGroupDetail/13303571_1.html
http://club.jd.com/CommunityGroupDetail/13303434_1.html
http://club.jd.com/CommunityGroupDetail/13303542_1.html
http://club.jd.com/CommunityGroupDetail/13303406_1.html
http://club.jd.com/CommunityGroupDetail/13303346_1.html
http://club.jd.com/CommunityGroupDetail/13303489_1.html
http://club.jd.com/CommunityGroupDetail/13303407_1.html
http://club.jd.com/CommunityGroupDetail/13303060_1.html
http://club.jd.com/CommunityGroupDetail/13303373_1.html
http://club.jd.com/CommunityGroupDetail/13303263_1.html
http://club.jd.com/CommunityGroupDetail/13303460_1.html
http://club.jd.com/CommunityGroupDetail/13303231_1.html
http://club.jd.com/CommunityGroupDetail/13303408_1.html
http://club.jd.com/CommunityGroupDetail/13303574_1.html
http://club.jd.com/CommunityGroupDetail/13303435_1.html
http://club.jd.com/CommunityGroupDetail/13303490_1.html
http://club.jd.com/CommunityGroupDetail/13303280_1.html
http://club.jd.com/CommunityGroupDetail/13303375_1.html
http://club.jd.com/CommunityGroupDetail/13303264_1.html
http://club.jd.com/CommunityGroupDetail/13303233_1.html
http://club.jd.com/CommunityGroupDetail/13303234_1.html
http://club.jd.com/CommunityGroupDetail/13303439_1.html
http://club.jd.com/CommunityGroupDetail/13303350_1.html
http://club.jd.com/CommunityGroupDetail/13303200_1.html
http://club.jd.com/CommunityGroupDetail/13303351_1.html
http://club.jd.com/CommunityGroupDetail/13303313_1.html
http://club.jd.com/CommunityGroupDetail/13303462_1.html
http://club.jd.com/CommunityGroupDetail/13303546_1.html
http://club.jd.com/CommunityGroupDetail/13303492_1.html
http://club.jd.com/CommunityGroupDetail/13303518_1.html
http://club.jd.com/CommunityGroupDetail/13303519_1.html
http://club.jd.com/CommunityGroupDetail/13303500_1.html
http://club.jd.com/CommunityGroupDetail/13303520_1.html
http://club.jd.com/CommunityGroupDetail/13303605_1.html
http://club.jd.com/CommunityGroupDetail/13303521_1.html
http://club.jd.com/CommunityGroupDetail/13303442_1.html
http://club.jd.com/CommunityGroupDetail/13303443_1.html
http://club.jd.com/CommunityGroupDetail/13303171_1.html
http://club.jd.com/CommunityGroupDetail/13303444_1.html
http://club.jd.com/CommunityGroupDetail/13303502_1.html
http://club.jd.com/CommunityGroupDetail/13303237_1.html
http://club.jd.com/CommunityGroupDetail/13303548_1.html
http://club.jd.com/CommunityGroupDetail/13303607_1.html
http://club.jd.com/CommunityGroupDetail/13303522_1.html
http://club.jd.com/CommunityGroupDetail/13303172_1.html
http://club.jd.com/CommunityGroupDetail/13303549_1.html
http://club.jd.com/CommunityGroupDetail/13303173_1.html
http://club.jd.com/CommunityGroupDetail/13303239_1.html
http://club.jd.com/CommunityGroupDetail/13303504_1.html
http://club.jd.com/CommunityGroupDetail/13303608_1.html
http://club.jd.com/CommunityGroupDetail/13303447_1.html
http://club.jd.com/CommunityGroupDetail/13303523_1.html
http://club.jd.com/CommunityGroupDetail/13303175_1.html
http://club.jd.com/CommunityGroupDetail/13303355_1.html
http://club.jd.com/CommunityGroupDetail/13303448_1.html
http://club.jd.com/CommunityGroupDetail/13303610_1.html
http://club.jd.com/CommunityGroupDetail/13303449_1.html
http://club.jd.com/CommunityGroupDetail/13303381_1.html
http://club.jd.com/CommunityGroupDetail/13303268_1.html
http://club.jd.com/CommunityGroupDetail/13303315_1.html
http://club.jd.com/CommunityGroupDetail/13303415_1.html
http://club.jd.com/CommunityGroupDetail/13303582_1.html
http://club.jd.com/CommunityGroupDetail/13303450_1.html
http://club.jd.com/CommunityGroupDetail/13303177_1.html
http://club.jd.com/CommunityGroupDetail/13303383_1.html
http://club.jd.com/CommunityGroupDetail/13303356_1.html
http://club.jd.com/CommunityGroupDetail/13303633_1.html
http://club.jd.com/CommunityGroupDetail/13303467_1.html
http://club.jd.com/CommunityGroupDetail/13303506_1.html
http://club.jd.com/CommunityGroupDetail/13303317_1.html
http://club.jd.com/CommunityGroupDetail/13303285_1.html
http://club.jd.com/CommunityGroupDetail/13303635_1.html
http://club.jd.com/CommunityGroupDetail/13303286_1.html
http://club.jd.com/CommunityGroupDetail/13303636_1.html
http://club.jd.com/CommunityGroupDetail/13303508_1.html
http://club.jd.com/CommunityGroupDetail/13303384_1.html
http://club.jd.com/CommunityGroupDetail/13303468_1.html
http://club.jd.com/CommunityGroupDetail/13303665_1.html
http://club.jd.com/CommunityGroupDetail/13303357_1.html
http://club.jd.com/CommunityGroupDetail/13303386_1.html
http://club.jd.com/CommunityGroupDetail/13303725_1.html
http://club.jd.com/CommunityGroupDetail/13303727_1.html
http://club.jd.com/CommunityGroupDetail/13303527_1.html
http://club.jd.com/CommunityGroupDetail/13303667_1.html
http://club.jd.com/CommunityGroupDetail/13303270_1.html
http://club.jd.com/CommunityGroupDetail/13303470_1.html
http://club.jd.com/CommunityGroupDetail/13303289_1.html
http://club.jd.com/CommunityGroupDetail/13303419_1.html
http://club.jd.com/CommunityGroupDetail/13303388_1.html
http://club.jd.com/CommunityGroupDetail/13303587_1.html
http://club.jd.com/CommunityGroupDetail/13303588_1.html
http://club.jd.com/CommunityGroupDetail/13303389_1.html
http://club.jd.com/CommunityGroupDetail/13303640_1.html
http://club.jd.com/CommunityGroupDetail/13303731_1.html
http://club.jd.com/CommunityGroupDetail/13303841_1.html
http://club.jd.com/CommunityGroupDetail/13303616_1.html
http://club.jd.com/CommunityGroupDetail/13303617_1.html
http://club.jd.com/CommunityGroupDetail/13303813_1.html
http://club.jd.com/CommunityGroupDetail/13303842_1.html
http://club.jd.com/CommunityGroupDetail/13303589_1.html
http://club.jd.com/CommunityGroupDetail/13303669_1.html
http://club.jd.com/CommunityGroupDetail/13303843_1.html
http://club.jd.com/CommunityGroupDetail/13303671_1.html
http://club.jd.com/CommunityGroupDetail/13303322_1.html
http://club.jd.com/CommunityGroupDetail/13303785_1.html
http://club.jd.com/CommunityGroupDetail/13303872_1.html
http://club.jd.com/CommunityGroupDetail/13303844_1.html
http://club.jd.com/CommunityGroupDetail/13303620_1.html
http://club.jd.com/CommunityGroupDetail/13303590_1.html
http://club.jd.com/CommunityGroupDetail/13303622_1.html
http://club.jd.com/CommunityGroupDetail/13303293_1.html
http://club.jd.com/CommunityGroupDetail/13303557_1.html
http://club.jd.com/CommunityGroupDetail/13303623_1.html
http://club.jd.com/CommunityGroupDetail/13303641_1.html
http://club.jd.com/CommunityGroupDetail/13303846_1.html
http://club.jd.com/CommunityGroupDetail/13303674_1.html
http://club.jd.com/CommunityGroupDetail/13303675_1.html
http://club.jd.com/CommunityGroupDetail/13303530_1.html
http://club.jd.com/CommunityGroupDetail/13303558_1.html
http://club.jd.com/CommunityGroupDetail/13303875_1.html
http://club.jd.com/CommunityGroupDetail/13303753_1.html
http://club.jd.com/CommunityGroupDetail/13303560_1.html
http://club.jd.com/CommunityGroupDetail/13303876_1.html
http://club.jd.com/CommunityGroupDetail/13303561_1.html
http://club.jd.com/CommunityGroupDetail/13303789_1.html
http://club.jd.com/CommunityGroupDetail/13303739_1.html
http://club.jd.com/CommunityGroupDetail/13303295_1.html
http://club.jd.com/CommunityGroupDetail/13303296_1.html
http://club.jd.com/CommunityGroupDetail/13303849_1.html
http://club.jd.com/CommunityGroupDetail/13303699_1.html
http://club.jd.com/CommunityGroupDetail/13303740_1.html
http://club.jd.com/CommunityGroupDetail/13303791_1.html
http://club.jd.com/CommunityGroupDetail/13303792_1.html
http://club.jd.com/CommunityGroupDetail/13303644_1.html
http://club.jd.com/CommunityGroupDetail/13303298_1.html
http://club.jd.com/CommunityGroupDetail/13303532_1.html
http://club.jd.com/CommunityGroupDetail/13303533_1.html
http://club.jd.com/CommunityGroupDetail/13303793_1.html
http://club.jd.com/CommunityGroupDetail/13303879_1.html
http://club.jd.com/CommunityGroupDetail/13303818_1.html
http://club.jd.com/CommunityGroupDetail/13303680_1.html
http://club.jd.com/CommunityGroupDetail/13303880_1.html
http://club.jd.com/CommunityGroupDetail/13303299_1.html
http://club.jd.com/CommunityGroupDetail/13303795_1.html
http://club.jd.com/CommunityGroupDetail/13303534_1.html
http://club.jd.com/CommunityGroupDetail/13303700_1.html
http://club.jd.com/CommunityGroupDetail/13303476_1.html
http://club.jd.com/CommunityGroupDetail/13303565_1.html
http://club.jd.com/CommunityGroupDetail/13303683_1.html
http://club.jd.com/CommunityGroupDetail/13303796_1.html
http://club.jd.com/CommunityGroupDetail/13303852_1.html
http://club.jd.com/CommunityGroupDetail/13303755_1.html
http://club.jd.com/CommunityGroupDetail/13303625_1.html
http://club.jd.com/CommunityGroupDetail/13303744_1.html
http://club.jd.com/CommunityGroupDetail/13303627_1.html
http://club.jd.com/CommunityGroupDetail/13303823_1.html
http://club.jd.com/CommunityGroupDetail/13303824_1.html
http://club.jd.com/CommunityGroupDetail/13303300_1.html
http://club.jd.com/CommunityGroupDetail/13303702_1.html
http://club.jd.com/CommunityGroupDetail/13303703_1.html
http://club.jd.com/CommunityGroupDetail/13303329_1.html
http://club.jd.com/CommunityGroupDetail/13303628_1.html
http://club.jd.com/CommunityGroupDetail/13303854_1.html
http://club.jd.com/CommunityGroupDetail/13303745_1.html
http://club.jd.com/CommunityGroupDetail/13303630_1.html
http://club.jd.com/CommunityGroupDetail/13303536_1.html
http://club.jd.com/CommunityGroupDetail/13303881_1.html
http://club.jd.com/CommunityGroupDetail/13303705_1.html
http://club.jd.com/CommunityGroupDetail/13303746_1.html
http://club.jd.com/CommunityGroupDetail/13303756_1.html
http://club.jd.com/CommunityGroupDetail/13303594_1.html
http://club.jd.com/CommunityGroupDetail/13303648_1.html
http://club.jd.com/CommunityGroupDetail/13303758_1.html
http://club.jd.com/CommunityGroupDetail/13303537_1.html
http://club.jd.com/CommunityGroupDetail/13303649_1.html
http://club.jd.com/CommunityGroupDetail/13303748_1.html
http://club.jd.com/CommunityGroupDetail/13303932_1.html
http://club.jd.com/CommunityGroupDetail/13303798_1.html
http://club.jd.com/CommunityGroupDetail/13303933_1.html
http://club.jd.com/CommunityGroupDetail/13303708_1.html
http://club.jd.com/CommunityGroupDetail/13303686_1.html
http://club.jd.com/CommunityGroupDetail/13303651_1.html
http://club.jd.com/CommunityGroupDetail/13303709_1.html
http://club.jd.com/CommunityGroupDetail/13303710_1.html
http://club.jd.com/CommunityGroupDetail/13303480_1.html
http://club.jd.com/CommunityGroupDetail/13303934_1.html
http://club.jd.com/CommunityGroupDetail/13303963_1.html
http://club.jd.com/CommunityGroupDetail/13303903_1.html
http://club.jd.com/CommunityGroupDetail/13303800_1.html
http://club.jd.com/CommunityGroupDetail/13303570_1.html
http://club.jd.com/CommunityGroupDetail/13303964_1.html
http://club.jd.com/CommunityGroupDetail/13303886_1.html
http://club.jd.com/CommunityGroupDetail/13303761_1.html
http://club.jd.com/CommunityGroupDetail/13303762_1.html
http://club.jd.com/CommunityGroupDetail/13303827_1.html
http://club.jd.com/CommunityGroupDetail/13303858_1.html
http://club.jd.com/CommunityGroupDetail/13303904_1.html
http://club.jd.com/CommunityGroupDetail/13303828_1.html
http://club.jd.com/CommunityGroupDetail/13303802_1.html
http://club.jd.com/CommunityGroupDetail/13303905_1.html
http://club.jd.com/CommunityGroupDetail/13303966_1.html
http://club.jd.com/CommunityGroupDetail/13304052_1.html
http://club.jd.com/CommunityGroupDetail/13303763_1.html
http://club.jd.com/CommunityGroupDetail/13304053_1.html
http://club.jd.com/CommunityGroupDetail/13303888_1.html
http://club.jd.com/CommunityGroupDetail/13303652_1.html
http://club.jd.com/CommunityGroupDetail/13303860_1.html
http://club.jd.com/CommunityGroupDetail/13303969_1.html
http://club.jd.com/CommunityGroupDetail/13303970_1.html
http://club.jd.com/CommunityGroupDetail/13303971_1.html
http://club.jd.com/CommunityGroupDetail/13303994_1.html
http://club.jd.com/CommunityGroupDetail/13303653_1.html
http://club.jd.com/CommunityGroupDetail/13303687_1.html
http://club.jd.com/CommunityGroupDetail/13303654_1.html
http://club.jd.com/CommunityGroupDetail/13303655_1.html
http://club.jd.com/CommunityGroupDetail/13303996_1.html
http://club.jd.com/CommunityGroupDetail/13303600_1.html
http://club.jd.com/CommunityGroupDetail/13303890_1.html
http://club.jd.com/CommunityGroupDetail/13304081_1.html
http://club.jd.com/CommunityGroupDetail/13303865_1.html
http://club.jd.com/CommunityGroupDetail/13303768_1.html
http://club.jd.com/CommunityGroupDetail/13304082_1.html
http://club.jd.com/CommunityGroupDetail/13303937_1.html
http://club.jd.com/CommunityGroupDetail/13304083_1.html
http://club.jd.com/CommunityGroupDetail/13303715_1.html
http://club.jd.com/CommunityGroupDetail/13304054_1.html
http://club.jd.com/CommunityGroupDetail/13303892_1.html
http://club.jd.com/CommunityGroupDetail/13304084_1.html
http://club.jd.com/CommunityGroupDetail/13303690_1.html
http://club.jd.com/CommunityGroupDetail/13304000_1.html
http://club.jd.com/CommunityGroupDetail/13303907_1.html
http://club.jd.com/CommunityGroupDetail/13303658_1.html
http://club.jd.com/CommunityGroupDetail/13303834_1.html
http://club.jd.com/CommunityGroupDetail/13303940_1.html
http://club.jd.com/CommunityGroupDetail/13304056_1.html
http://club.jd.com/CommunityGroupDetail/13303659_1.html
http://club.jd.com/CommunityGroupDetail/13303835_1.html
http://club.jd.com/CommunityGroupDetail/13303540_1.html
http://club.jd.com/CommunityGroupDetail/13303894_1.html
http://club.jd.com/CommunityGroupDetail/13303908_1.html
http://club.jd.com/CommunityGroupDetail/13303909_1.html
http://club.jd.com/CommunityGroupDetail/13303869_1.html
http://club.jd.com/CommunityGroupDetail/13303979_1.html
http://club.jd.com/CommunityGroupDetail/13303895_1.html
http://club.jd.com/CommunityGroupDetail/13304003_1.html
http://club.jd.com/CommunityGroupDetail/13303771_1.html
http://club.jd.com/CommunityGroupDetail/13303806_1.html
http://club.jd.com/CommunityGroupDetail/13303660_1.html
http://club.jd.com/CommunityGroupDetail/13303837_1.html
http://club.jd.com/CommunityGroupDetail/13303910_1.html
http://club.jd.com/CommunityGroupDetail/13304008_1.html
http://club.jd.com/CommunityGroupDetail/13304009_1.html
http://club.jd.com/CommunityGroupDetail/13303777_1.html
http://club.jd.com/CommunityGroupDetail/13303942_1.html
http://club.jd.com/CommunityGroupDetail/13304115_1.html
http://club.jd.com/CommunityGroupDetail/13304174_1.html
http://club.jd.com/CommunityGroupDetail/13304060_1.html
http://club.jd.com/CommunityGroupDetail/13303808_1.html
http://club.jd.com/CommunityGroupDetail/13303778_1.html
http://club.jd.com/CommunityGroupDetail/13303984_1.html
http://club.jd.com/CommunityGroupDetail/13304033_1.html
http://club.jd.com/CommunityGroupDetail/13304088_1.html
http://club.jd.com/CommunityGroupDetail/13304063_1.html
http://club.jd.com/CommunityGroupDetail/13304205_1.html
http://club.jd.com/CommunityGroupDetail/13303986_1.html
http://club.jd.com/CommunityGroupDetail/13304064_1.html
http://club.jd.com/CommunityGroupDetail/13304261_1.html
http://club.jd.com/CommunityGroupDetail/13303913_1.html
http://club.jd.com/CommunityGroupDetail/13304143_1.html
http://club.jd.com/CommunityGroupDetail/13303900_1.html
http://club.jd.com/CommunityGroupDetail/13304092_1.html
http://club.jd.com/CommunityGroupDetail/13304207_1.html
http://club.jd.com/CommunityGroupDetail/13304351_1.html
http://club.jd.com/CommunityGroupDetail/13303987_1.html
http://club.jd.com/CommunityGroupDetail/13304264_1.html
http://club.jd.com/CommunityGroupDetail/13304293_1.html
http://club.jd.com/CommunityGroupDetail/13304178_1.html
http://club.jd.com/CommunityGroupDetail/13304355_1.html
http://club.jd.com/CommunityGroupDetail/13304360_1.html
http://club.jd.com/CommunityGroupDetail/13304038_1.html
http://club.jd.com/CommunityGroupDetail/13303989_1.html
http://club.jd.com/CommunityGroupDetail/13304269_1.html
http://club.jd.com/CommunityGroupDetail/13304270_1.html
http://club.jd.com/CommunityGroupDetail/13304272_1.html
http://club.jd.com/CommunityGroupDetail/13304381_1.html
http://club.jd.com/CommunityGroupDetail/13304236_1.html
http://club.jd.com/CommunityGroupDetail/13303948_1.html
http://club.jd.com/CommunityGroupDetail/13304361_1.html
http://club.jd.com/CommunityGroupDetail/13304041_1.html
http://club.jd.com/CommunityGroupDetail/13304212_1.html
http://club.jd.com/CommunityGroupDetail/13304273_1.html
http://club.jd.com/CommunityGroupDetail/13304067_1.html
http://club.jd.com/CommunityGroupDetail/13304297_1.html
http://club.jd.com/CommunityGroupDetail/13303926_1.html
http://club.jd.com/CommunityGroupDetail/13303950_1.html
http://club.jd.com/CommunityGroupDetail/13303951_1.html
http://club.jd.com/CommunityGroupDetail/13304329_1.html
http://club.jd.com/CommunityGroupDetail/13304275_1.html
http://club.jd.com/CommunityGroupDetail/13303953_1.html
http://club.jd.com/CommunityGroupDetail/13303928_1.html
http://club.jd.com/CommunityGroupDetail/13303929_1.html
http://club.jd.com/CommunityGroupDetail/13304181_1.html
http://club.jd.com/CommunityGroupDetail/13304299_1.html
http://club.jd.com/CommunityGroupDetail/13303954_1.html
http://club.jd.com/CommunityGroupDetail/13304070_1.html
http://club.jd.com/CommunityGroupDetail/13304332_1.html
http://club.jd.com/CommunityGroupDetail/13304383_1.html
http://club.jd.com/CommunityGroupDetail/13304300_1.html
http://club.jd.com/CommunityGroupDetail/13304333_1.html
http://club.jd.com/CommunityGroupDetail/13304047_1.html
http://club.jd.com/CommunityGroupDetail/13304415_1.html
http://club.jd.com/CommunityGroupDetail/13304365_1.html
http://club.jd.com/CommunityGroupDetail/13304073_1.html
http://club.jd.com/CommunityGroupDetail/13304242_1.html
http://club.jd.com/CommunityGroupDetail/13304473_1.html
http://club.jd.com/CommunityGroupDetail/13304218_1.html
http://club.jd.com/CommunityGroupDetail/13304186_1.html
http://club.jd.com/CommunityGroupDetail/13304367_1.html
http://club.jd.com/CommunityGroupDetail/13304450_1.html
http://club.jd.com/CommunityGroupDetail/13304369_1.html
http://club.jd.com/CommunityGroupDetail/13304222_1.html
http://club.jd.com/CommunityGroupDetail/13304223_1.html
http://club.jd.com/CommunityGroupDetail/13304246_1.html
http://club.jd.com/CommunityGroupDetail/13304224_1.html
http://club.jd.com/CommunityGroupDetail/13304248_1.html
http://club.jd.com/CommunityGroupDetail/13304371_1.html
http://club.jd.com/CommunityGroupDetail/13304140_1.html
http://club.jd.com/CommunityGroupDetail/13304229_1.html
http://club.jd.com/CommunityGroupDetail/13304423_1.html
http://club.jd.com/CommunityGroupDetail/13304108_1.html
http://club.jd.com/CommunityGroupDetail/13304286_1.html
http://club.jd.com/CommunityGroupDetail/13304479_1.html
http://club.jd.com/CommunityGroupDetail/13304375_1.html
http://club.jd.com/CommunityGroupDetail/13304342_1.html
http://club.jd.com/CommunityGroupDetail/13304158_1.html
http://club.jd.com/CommunityGroupDetail/13304427_1.html
http://club.jd.com/CommunityGroupDetail/13304481_1.html
http://club.jd.com/CommunityGroupDetail/13304198_1.html
http://club.jd.com/CommunityGroupDetail/13304564_1.html
http://club.jd.com/CommunityGroupDetail/13304253_1.html
http://club.jd.com/CommunityGroupDetail/13304379_1.html
http://club.jd.com/CommunityGroupDetail/13304458_1.html
http://club.jd.com/CommunityGroupDetail/13304595_1.html
http://club.jd.com/CommunityGroupDetail/13304165_1.html
http://club.jd.com/CommunityGroupDetail/13304596_1.html
http://club.jd.com/CommunityGroupDetail/13304712_1.html
http://club.jd.com/CommunityGroupDetail/13304288_1.html
http://club.jd.com/CommunityGroupDetail/13304490_1.html
http://club.jd.com/CommunityGroupDetail/13304464_1.html
http://club.jd.com/CommunityGroupDetail/13304166_1.html
http://club.jd.com/CommunityGroupDetail/13304569_1.html
http://club.jd.com/CommunityGroupDetail/13304431_1.html
http://club.jd.com/CommunityGroupDetail/13304432_1.html
http://club.jd.com/CommunityGroupDetail/13304492_1.html
http://club.jd.com/CommunityGroupDetail/13304598_1.html
http://club.jd.com/CommunityGroupDetail/13304316_1.html
http://club.jd.com/CommunityGroupDetail/13304349_1.html
http://club.jd.com/CommunityGroupDetail/13304771_1.html
http://club.jd.com/CommunityGroupDetail/13304496_1.html
http://club.jd.com/CommunityGroupDetail/13304716_1.html
http://club.jd.com/CommunityGroupDetail/13304685_1.html
http://club.jd.com/CommunityGroupDetail/13304658_1.html
http://club.jd.com/CommunityGroupDetail/13304513_1.html
http://club.jd.com/CommunityGroupDetail/13304720_1.html
http://club.jd.com/CommunityGroupDetail/13304497_1.html
http://club.jd.com/CommunityGroupDetail/13304801_1.html
http://club.jd.com/CommunityGroupDetail/13304571_1.html
http://655055.com/read.asp?3075.html
http://655055.com
http://655055.com/read.asp?5127.html
http://www.488222.com
http://www.25144.com
http://www.488234.com
http://www.655055.com/bbs/
http://www.41389.com
http://www.84205.com

时间: 2024-11-07 16:02:57

ViewPager 动画效果getett的相关文章

Android ViewPager 动画效果

package com.example.jaazy; import java.util.ArrayList; import android.support.v4.view.PagerAdapter; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; /** * Create by LanYan on 2014.04.24 * This is a ad

ViewPager 动画效果ytytiityiyy

http://club.jd.com/CommunityGroupDetail/13303117_1.html http://club.jd.com/CommunityGroupDetail/13303483_1.html http://club.jd.com/CommunityGroupDetail/13303343_1.html http://club.jd.com/CommunityGroupDetail/13303279_1.html http://club.jd.com/Communi

使用ViewPager动画来做出不一样的引导页

就算Google从很早开始就自带了设置引导页动画的接口,但是就我目前看来市面上使用引导页动画的还是很少的,也不知道是为什么,一想到Material Design的使用率也这么少表示很心塞. 首先来看看市面上千篇一律的引导页效果,诺: 很单调对不对,你们没看吐我都看吐了,再看一份加了引导页动画效果的: 有没有瞬间耳目一新的感觉,下面就谈谈如何做出这样的引导页动画. 其实从Android 3.0也就是API 11开始Android就自带了一个PageTransformer接口用来实现ViewPage

viewpager切换添加动画效果viewpager切换添加动画效果--IT蓝豹

viewpager切换添加动画效果,本项目中主要有三种切换特效,(1):DepthPageTransformer 效果(2):RotateDownPageTransformer 每一个view切换的时候旋转(3):ZoomOutPageTransformer 效果主要实现代码:  mViewPager.setPageTransformer(true,new ZoomOutPageTransformer());  mViewPager.setPageTransformer(true,new Rot

ViewPager切换动画效果修改

比如我们点击向右按钮,希望左边的view移动过来,有个平移效果,但是用系统默认的ViewPager切换的时候,会一闪而过.这是为什么呢? 因为viewpager外面其实有个scrollview,你可以使用反射的方法,设置他的scroll时间.代码如下. 主要代码: //第一步: LayoutInflater mInflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v

ViewPager切换动画效果改动

比方我们点击向右button,希望左边的view移动过来,有个平移效果,可是用系统默认的ViewPager切换的时候,会一闪而过. 这是为什么呢? 由于viewpager外面事实上有个scrollview,你能够使用反射的方法,设置他的scroll时间.代码例如以下. 主要代码: //第一步: LayoutInflater mInflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE)

ViewPager的动画效果(学习自慕课网)

先上效果一: 先上效果二: 先上效果三: 首先定义好viewPager控件,其次,是调用一行代码实现动画效果, pager.setPageTransformer(true,new DepthPageTransformer()); 前提是需要做一些准备操作的,且只有api3.0以上才可以有效. 注:因为属性动画是3.0以后才出现的,如果想在3.0以下的手机上实现动画,需要做一些更改,用nineoldandroids框架来代替属性动画.这里先不向下兼容了.如有想向下兼容的朋友,可以访问宏阳大神的博客

实现页面切换(动画效果实现,不用ViewPager)

源码地址 http://download.csdn.net/detail/u013210620/8791687 先看主页面布局activity_main <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=&quo

Android--ViewPager多页面滑动切换以及动画效果

背景                                                                                           ViewPager.它是google SDk中自带的一个附加包的一个类,可以用来实现屏幕间的切换.这个附加包是android-support-v4.jar. 根据屏幕的分辨率和图片的宽度计算动画移动的偏移量 代码