如何在 Android 中创建滑块屏幕(如 Tweetdeck 中)?
我们想要创建一个应该具有不同列表视图的屏幕,并且用户可以滑动(向左或向右)查看另一个列表视图(就像在 TweetDeck 和某些 Android 操作系统版本的主屏幕中一样)。还有一个点列表,用于标识有多少列表视图。
请参阅屏幕截图。
提前致谢, 阿夫扎尔。
We want to create a screen which should have different list views and the user can slide (Left or right) to view another list view (just like in TweetDeck and in home screen on some Android OS version). There is also a list of dots which identify how many list views are there.
Please refer to the screen shot.
Thanks in advance,
Afzal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了:
http://code.google.com/p/deezapps-widgets/
工作方式类似于一种魅力。
谢谢。
Found it:
http://code.google.com/p/deezapps-widgets/
Works like a charm.
Thank you.
事实上这个控件叫做ViewPager,现在Android已经支持了。您可以检查兼容性包名称 android-support-v4.jar。
一些带有指示器的不错的 ViewPager 示例是:
android-viewflow: https://github.com/pakerfeldt/ android-viewflow
Android-ViewPagerIndicator:https://github.com/JakeWharton/Android -ViewPagerIndicator
P/s:查看我的应用程序:Android UI 模式 (https ://market.android.com/details?id=com.groidify.uipatterns)以获得更多漂亮的 UI 模式。
In fact this control called ViewPager, now is supported by Android. You can check a compatibility package name android-support-v4.jar.
Some nice ViewPager samples with indicator is:
android-viewflow: https://github.com/pakerfeldt/android-viewflow
Android-ViewPagerIndicator: https://github.com/JakeWharton/Android-ViewPagerIndicator
P/s: Checkout my app: Android UI Patterns (https://market.android.com/details?id=com.groidify.uipatterns) for more nice UI Patterns.