-1

I would like to create swipeable tabs without action bar at its top as shown as in the link. I've used the following lines : setDisplayShowHomeEnabled(false); setDisplayShowTitleEnabled(false);

Also here is my Layout xml.

Can anyone please help me how I can achieve this.

2
  • Show your layout.xml please Commented Nov 18, 2015 at 7:06
  • @BenjaminScharbau, I've added my xml layout for your reference Commented Nov 18, 2015 at 7:09

1 Answer 1

0

Your layout should be set up similar to this:

<LinearLayout>
    <ToolBar/>
    <TabBar/>
    <ViewPager/>
</LinearLayout>

Also you should choose a theme without ActionBar (i.E. Theme.AppCompat.Light.NoActionBar) for your application, and not call setSupportActionbar()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.