Android: Remove TabHost Top Extra Space

Took me quite some time to finally solve this. I know that many developers do not want their tabs to look like the one in the first photo where there is an extra space at the top. Even I did not like how this looks like. All the forums I have gone through never gave any correct answer.

I will get straight to the point so you can apply this to your app right away. The attribute that needs to be modified is the padding. Simply call the method below and your tabs will not display any extra space on its top.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *