Here is sample for loop tabs in Android.

Video with sample application in action

Lets show how it works.

1. I have Tab enum which describe Tab element. Also you can handle tab state. I don’t do it in this sample.

2. Project has View for tabs which extended from TabCloneableView. Here you can work around tab state. And tab transition between tabs.

3. TabCloneableView class

4. The most of magic located in the TabInfiniteScrollView. This View contains TabView objects and work with them.

5. TabSize class

6. And the Activity

Full source here:

Download it from github


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.