I am new to android and recently used a android template (Tabbed activity - with ViewPager and fragments) and noticed that the ActionBar and ActionBar.TabListener are deprecated. So I replaced the ActionBar with AppCompatActivity as it is recommended, but Now I am wondering what should I use instead of the TabListener. Can I use onClickListener nested class in the Toolbar class ?
Node: The app works fine with the deprecated interface, but I want to use an interface that is not.
public class MainActivity extends AppCompatActivity implements ActionBar.TabListener {
This is a screenshot of my app