如何创建工具栏选项卡与ViewPager在材料设计 [英] How to create Toolbar Tabs with ViewPager in material design

查看:276
本文介绍了如何创建工具栏选项卡与ViewPager在材料设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我需要帮助!

任何人都知道任何有关如何标签在API 21 / AppCompat工具栏做了什么?

很多资料和物品我发现了什么是老了。他们用老方法与动作条这不`吨现在的工作。这时我刚刚创建工具栏,没有想法的工具栏选项卡。因此,谁能提供有关如何使工具栏选项卡与viewpager例子或文章。

解决方案
  

任何人都知道的标签是如何在API 21 / AppCompat工具栏做了什么?

有没有工具栏标签。具有操作栏中的选项卡的模式是通过材料设计pcated德$ P $,他们创建时工具栏,他们放弃了标签。

  

因此​​,谁能提供有关如何使工具栏选项卡与viewpager例子或文章。

有没有工具栏标签。

欢迎您使用 PagerTabStrip TabPageIndicator 从的的ViewPagerIndicator库 PagerSlidingTabStrip 等。为你的 ViewPager 标签。

Hello to everyone! I need a help!

Anyone know anything about how tabs are done in API 21/AppCompat Toolbar?

A lot of materials and articles what i found were old. They used old methods with ActionBar which don`t work now. At this moment i just created toolbar and have no ideas about toolbar tabs. So can anyone give examples or articles about how to make toolbar tabs with viewpager.

解决方案

Anyone know anything about how tabs are done in API 21/AppCompat Toolbar?

There are no Toolbar tabs. The pattern of having tabs in the action bar was deprecated by Material Design, and when they created Toolbar, they dropped tabs.

So can anyone give examples or articles about how to make toolbar tabs with viewpager.

There are no Toolbar tabs.

You are welcome to use PagerTabStrip, the TabPageIndicator from the ViewPagerIndicator library, PagerSlidingTabStrip, etc. for your ViewPager tabs.

这篇关于如何创建工具栏选项卡与ViewPager在材料设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆