Vivek Shah
Vivek Shah

Reputation: 380

The type ActionBar.Tab is deprecated from api 21 error

I making a tab code , and reusing the same code from past application.

and after updating api 21 the issue coming to this.

The type ActionBar.Tab is deprecated.

import android.support.v7.app.ActionBar.Tab;

what should be solution ?

Upvotes: 0

Views: 1728

Answers (1)

mmlooloo
mmlooloo

Reputation: 18977

what should be solution ?

change it to other tab implementation method like:

1)FragmentTabHost

2)TabHost

3)PagerSlidingTabStrip

4)SlidingTabsBasic

Upvotes: 3

Related Questions