动作条和ActionBar.Tab和导航抽屉的android抽屉、动作、Tab、ActionBar

2023-09-12 02:05:55 作者:借个火,我想抽掉寂寞

我公司采用与Android的支持-V7-appcompat帮助操作栏,并使用导航抽屉里了吧。

I am using action bar with help of android-support-v7-appcompat and also using Navigation drawer over it.

在我的片段之一,如果我用ActionBar.Tabs然后将标签重叠导航抽屉,抽屉得到动作条选项卡下面。

In one of my fragment if I use ActionBar.Tabs then the tabs overlaps the navigation drawer and the drawer gets below the ActionBar tabs.

我怎样才能使谷歌像操作栏播放应用程序或谷歌的电影应用。 该卡还应该像背后片段。我怎么可以做同样的与Android支持-V7-appcompat利布斯

How can I make the action bar like in google play application or Google movie application. The tabs should also go behind like the fragment. How can I do the same with android-support-v7-appcompat Libs

推荐答案

有关标签栏尝试ViewPagerIndicator http://viewpagerindicator.com/ 这有一个很好的实现了标签栏。

For Tab bar try ViewPagerIndicator http://viewpagerindicator.com/ This has a very good implementation for tab bar.

当我们使用默认的标签栏与动作条,在横向模式下将被合并为一行。因此,它更好地使用上面的库。

When we use default tab bar with actionbar, in landscape mode it will be merged into single row. So its better to use the above library.