-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.

Parthiban M
  • 1,104
  • 1
  • 10
  • 30

1 Answers1

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()

Benjamin Scharbau
  • 2,028
  • 1
  • 16
  • 33