重写PageAdapter的方法:
public float getPageWidth(int position) { if (position == 0 || position == 2) { return 0.8f; } return 1f; }
按比例显示图片
本文介绍了一种重写PageAdapter中的getPageWidth方法的方法,通过该方法可以实现对页面宽度的自定义设置,例如让特定位置的页面以不同的宽度显示。
3765

被折叠的 条评论
为什么被折叠?



