在ViewPager刷卡的最后一页后表示 [英] Indicate after swiping the last page in ViewPager

查看:152
本文介绍了在ViewPager刷卡的最后一页后表示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已创建了一圈页指示灯视图寻呼机。其工作罚款。
这是我的新的要求:
当我'在最后/第一页,并尝试刷卡下一/ previous页,我的屏幕应该向着刷卡方向移动至少30%,回到原来的位置,因为没有更多的页面导航?当然,我在页面顶部的指标,告诉其中提供的网页是我。我希望我的要求是明确的。我怎样才能实现呢?请帮帮我。提前致谢。

I have created a view pager with circle page indicator. Its working fine. Here is my new requirement : When i'am in last/first page and try to swipe for next/previous page, my screen should move at least 30% towards the swiped direction and come back to its original position as there are no more pages to navigate? Of course i have page indicators at top which tells where am i in available pages. I hope my requirement is clear. How can i achieve it ? Please help me. Thanks in advance.

推荐答案

这是自动的。该操作系统已经内建指标告诉意见不能进一步偷走任何用户。操作系统将显示在屏幕的一侧辉光,用户不能进一步拉

This is automatic. The OS has built in indicators to tell the user the views can't be swiped any further. The OS will display a glow on the side of the screen, and the user can't pull further.

不知道,如果你可以创建自己独特的用户界面来处理这个 - 操作系统确实提供了一个指标开箱

Not sure if you can create your own unique UI to handle this - the OS does provide a indicator out of the box.

这篇关于在ViewPager刷卡的最后一页后表示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆