I managed to do it successfully. Here is the xml I used:
And I setted it as custom view to my ab like goober_nuts answer suggests.
It wasn't as good as I wanted it to be. I would also want to change the height of the tabs but haven't managed to do it. Here is the picture of the last look:
