如何实现水平滚动的标签? [英] How to implement horizontally scrollable tabs?
问题描述
我想实现这个应用程序。目前,我已经设计上的标签因为我有超过7片看起来太拥挤。我该如何设计它,这样的tabwidget是滚动的水平。我已经看到了这种设计上的一些应用程序在市场上,但不知道如何在我的应用程序实现这一点。
I'm trying to implement this application. At the moment I have designed tabs on it and since I have more than 7 tabs it looks too congested. How can I design it so that the tabwidget is scrollable horizontally. I have seen this design on few of the apps at the market but no clue how to implement this in my app.
一个应用程序,我看到有一个水平滚动视图那里滚动自己,当你preSS中的特定图像/按钮,它会显示一些内容。它似乎没有被卡,我猜。
One app I saw had a horizontal scrollview where it scrolls on its own and when you press the particular image/button it displays some content. It didn't seem to be tabs I guess.
因此,没有人有这样的想法?
So does anyone have an idea of this?
推荐答案
请看看杰克沃顿商学院的ViewPager应用程序。这正是你需要的。这是一个库项目,所以你必须将其包含在你的项目。
Please check out Jake Wharton's ViewPager app. That is exactly what you need. It is a library project, so you have to include it in your project.
JakeWharton / Android的ViewPagerIndicator
这篇关于如何实现水平滚动的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!