1

I have 3 tabs basically and on clicking one of those I want to display 2 more tabs which is like nested tabs. How can I achieve this in android? I just added 3 tabs in an activity and in one tab activity I again added 2 more tabs. But this is giving me error.

Please anybody have any other idea share it and help me out,thanks in advance.

I want the tab as shown in the image below

user3350830
  • 89
  • 1
  • 14
  • Well how do you imagine that this would work or more specifically look like? When you say tabs I assume you mean tabs in the ActionBar. Where do you want your additional nested tabs to be displayed? – Xaver Kapeller Apr 21 '14 at 12:09
  • what do you mean by tabs in action bar?? I have taken the tab widget and added 3 tabs.and now I want to add child tab to one of these 3 tabs... – user3350830 Apr 22 '14 at 04:24
  • Well what do you mean by child tabs? You have to give us more information. Like this you just leave us guessing about your problem. Show us your layout or relevant bits of code. Explain exactly what isn't working. – Xaver Kapeller Apr 22 '14 at 13:24
  • You may find [this](http://stackoverflow.com/a/12694096) answer helpful. – Poliakoff Dec 15 '15 at 10:42

1 Answers1

0

That's not a good idea. How users are supposed to know which tabs would respond to a swipe action? Multi-level tabs are confusing. You should use drop down navigation or a navigation drawer instead of top-level tabs.

Konstantin Burov
  • 68,980
  • 16
  • 115
  • 93