Man Cuzzy Man Cuzzy - 2 years ago 147
Android Question

How to space tab layout text

Guys please i know this is not the best question to asked but am a newbie to android development so please bare with me. Am building an android app with tabs but the result i am getting is not what i wish for. I will like to implement something similar to what whatsapp has.

Below is what i want to do:

My Tab

my app's screenshot


whatsapp screenshot

Answer Source

Write this line inside Tablayout app:tabGravity="fill"

for example:

            app:tabMode="fixed" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download