Georgi Koemdzhiev
Georgi Koemdzhiev

Reputation: 11931

Tabbed Activity Template ActionBar.TabListener deprecated

I am using the Tabbed Activity (that includes swipes and tabs) and when I was looking at the generated code, noticed that "ActionBarActivity" is deprecated. So I went online android docs and show that I should use "AppCompatActivity" insted, I changed the extending class from ActionBarActivity to AppCompatActivity and there was no problem. However, there is another deprecated interface and that is ActionBar.TabListener. What should I use instead of this interface ?

Upvotes: 0

Views: 275

Answers (1)

Ajay Katwe
Ajay Katwe

Reputation: 101

Switch to toolbar much easier to work with you can use pagerslidingtabstrip and link it with your viewpager.

Upvotes: 1

Related Questions