在片段的中间查看传呼机标签 [英] View Pager tabs in middle of fragment
问题描述
我如何实施这些选项卡,无异于谷歌,加上个人资料页?
How do i implement these tabs, the same as in Google plus profile page?
我想我不能用动作条的标签,因为他们clinged到动作条。我想要的标签是一个图像的下方喜欢这个形象。此外,我想这些标签是固定的。我想三个选项卡,所有三个选项卡应显示在屏幕上 - 由于Android的固定标签加刷卡布局,它使用操作栏的标签,虽然
I think I can't use ActionBar tabs as they are clinged to ActionBar. I want the tabs to be below an image like in this image. Also i want these tabs to be fixed. I want three tabs and all three tabs should be visible on screen - as the android fixed tabs plus swipe layout which uses Action Bar tabs though.
推荐答案
看一看杰克沃顿商学院的优秀的Android ViewPagerIndicator库。
Have a look at Jake Wharton's excellent Android ViewPagerIndicator library.
<一个href="https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/sample/res/layout/simple_tabs.xml"相对=nofollow>此示例给你后,你是什么。
This sample gives you what you are after.
这篇关于在片段的中间查看传呼机标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!