简体   繁体   English

Android动态标签

[英]Android Dynamic Tabs

I am creating a dynamic tab feature for my Android application. 我正在为我的Android应用程序创建动态选项卡功能。 When the user is on the ast Tab and swipes right, I want it to go to the first tab. 当用户位于ast选项卡上并向右滑动时,我希望它转到第一个选项卡。

How would one implement this? 一个人将如何实现呢?

  1. Detect the gesture. 检测手势。
  2. Set Tab to the first Tab? 将标签页设置为第一个标签页?

You can use this library for circular loop to handle Infinite ViewPager 您可以使用此库进行循环处理无限ViewPager

https://github.com/antonyt/InfiniteViewPager https://github.com/antonyt/InfiniteViewPager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM