android - Change the padding of TextView in TabLayout -


i want change padding on textview in tablayout. have tab that's called subcategories. breaking line wrapping 2 lines. there way this?

there answers concerning old tabhost view, using tablayout used google's material design library using android.support.design.widget.tablayout.

for tabhost: how add padding tabs label?

the textview not padded out, layout surrounding textview is, change linearlayout's padding:

int tabindex = 0; linearlayout layout = ((linearlayout)((linearlayout)mtablayout.getchildat(0)).getchildat(tabindex)); layout.setpadding(0, 0, 0, 0); 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -