TabBar Android how to create

0

Does anyone have an example of how to create tabs in Android, WhatsApp style?

Here's the example I want:

In the example, I want to create the Calls, Chats, and Contacts tabs

And finally, in the second image, how to add a photo in the bar and next to the name of the person?

I just need an example.

Thank you

    
asked by anonymous 13.06.2016 / 15:18

1 answer

1

This scheme with the WhatsApp tabs is called ViewPager .

You can see an example of the codes and even download a project and import into your Android Studio to see how it is done, in the Android documentation itself, follow the link:

link

Now for the name-side photo case, it's a bit more complicated, you need to search for listview / recyclerview with a custom adapter.

It does not make sense to send you links with examples here, as they can be changed without prior notice, so it's worth your while to search Google for listview with custom adapter .

Remember to always search in English, content found will be much richer than if you search in Portuguese.

Any questions you may have about researching these subjects are from the one asked here on the topic that we are helping you with.

Hugs.

    
13.06.2016 / 15:27