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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

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