更新的Android SDK API中的TabListener问题23
问题描述:
我已经将android SDK更新为API 23.在工作时我偶然使用了对ActionBar.TabListener库的弃用,ActionBar.TabListener的替换是什么。
我在我的项目中引入Tabs
I have updated android SDK to API 23. While working I came across deprecation of "ActionBar.TabListener" library while using along, what are the replacements of ActionBar.TabListener.
I am introducing Tabs in my project
答
ActionBar.TabListener
[ ^ ]在API级别21中已弃用,它们提供了该文档的原因供开发人员阅读,如果您错过了它,
ActionBar.TabListener
[^] was deprecated in API level 21 and they provided a reason on that documentation for developers to read, in case you missed it,
Quote:
不推荐使用操作栏导航模式,内联工具栏操作栏不支持。
Action bar navigation modes are deprecated and not supported by inline toolbar action bars.
Android团队自己提供了其他指南的链接应该考虑使用 [ ^ ]比这个弃用的API。
Android team themselves provided the link to other guides that you should consider using[^] rather than this deprecated API.