Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SlidingTabLayout with subtabs

I would like to implement subtabs in SlidingTabLayout.

I searched a lot, but I don't have found anything like it.

Does anyone have a solution or a suggestion for implementing this?

Thanks.

like image 757
user2865012 Avatar asked Jun 04 '26 15:06

user2865012


2 Answers

There's quite a simple approach. You can associate you main tabs with viewpagers. Then, in those viewpagers you may add more slidingtablayouts in order to attain what you want to. I've got it working successfully. So nest the slidingtablayouts and you'll do fine. If you want some code, feel free to ask for it.

like image 122
sri Avatar answered Jun 08 '26 00:06

sri


I implemented a simple example of sub tabs with slidingtab: https://github.com/steinmetz/SubSlidingTabs

like image 31
user2865012 Avatar answered Jun 07 '26 23:06

user2865012