简体   繁体   English

如何在我的Android应用程序中更改“标签”只需在屏幕上滑动? 像Google+ Android应用程序一样

[英]How to change 'tabs' in my android app simply swiping on the screen? Like Google+ Android app does

in my android app I would like to create a ux like the new Google+ app for android, in wich moving from one tab to the other (for example viewing a user profile: 'post','info' and 'photos') is possible simply swiping on the screen.. 在我的Android应用程序中,我想创建一个像Android的新Google+应用程序的ux,从一个标签移动到另一个标签(例如查看用户配置文件:'post','info'和'photos')是可能的只需在屏幕上滑动..

Can anyone please help me providing some example or tutorial? 谁能帮我提供一些示例或教程?

Thanks everyone in advance! 提前谢谢大家!

They're doing horizontal swiping with a ViewPager. 他们正在使用ViewPager进行水平滑动。 Here's a post on the android blog about how to do that. 这是Android博客上关于如何做到这一点的帖子

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

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