Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why has TabListener been deprecated?

Tags:

android

In Android 5 (API level 21) the ActionBar.TabListener has been deprecated. Why? What are we supposed to use instead? Does this mean that action tabs as a UI element have been deprecated in general or is there a new way to implement them?

like image 341
idrosid Avatar asked Oct 31 '14 07:10

idrosid


2 Answers

Look this example SlidingTabsBasics If you need more info - check Google I/O sources

like image 64
localhost Avatar answered Nov 13 '22 09:11

localhost


Several ActionBar-related classes have been deprecated in favor of Toolbar, which is a generalization of ActionBar. Some extra reading here.

like image 29
idrosid Avatar answered Nov 13 '22 10:11

idrosid