In my android application, I want to display tabs under the action bar and action bar should not have the home icon.
Below is my code.
// Initilization
viewPager = (ViewPager) findViewById(R.id.pager);
actionBar = getSupportActionBar();
View actionbar1 = LayoutInflater.from(this).inflate(R.layout.header,
null);
actionBar.setCustomView(actionbar1);
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(false);
actionBar.setDisplayShowHomeEnabled(false);
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayUseLogoEnabled(false);
mAdapter = new TabsPagerAdapter(getSupportFragmentManager());
viewPager.setAdapter(mAdapter);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
and the output is in the below screen. I want the action bar to be top of the page and below that the tabs should come.
Please help me how to solve the above issue. I'm looking forward for your responses.
Thanks