actionbar setnavigationmode deprecated

穿精又带淫゛_ 提交于 2019-12-01 19:09:53
motoDrizzt

setNavigationMode it's deprecated because on Lollipop it has being replaced by a new paradigm.

You have two options, at least:

  1. Ignore it unless you are targeting 21+ API and developing only for Lollipop.

  2. Use AppCompat; samples here: https://github.com/google/iosched

Personally, I went for option 1.

The Google I/O 2014 Android App contain what you need

SlidingTabLayout.java ,check out here

and the SlidingTabStrip.java

there are two files could implement what you show up there.

more document about this style at here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!