Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

use tab with new toolbar appcompat v7 21

use tab with new toolbar appcompat v7 21  using -'android,tabs,android-support-library,appcompat,android-actionbar-compat'

I was using Support ActionBar with tabs and using custom ActionBar theme (created with, showing the tabs only when the user expand the search view.

public boolean onMenuItemActionExpand(MenuItem item) {
        return true;

I migrated from ActionBar to ToolBar. My app really needs to support api 9.

Is there a way to use this?:

Toolbar toolbar = (Toolbar) findViewById(;

If is possible, how to use my custom theme or style the toolbar?

Documentation say that is deprecated and suggests to use other type of navigation.
But I don't know other component in android to have the same functionality.

Some help?

asked Oct 19, 2015 by gauravsinghal83
0 votes

Related Hot Questions

Government Jobs Opening