Skip to content Skip to sidebar Skip to footer

Why Is The Drawable Overlapping The Text In My Tabview

Why does the tab text overlap the drawable in the tab? Is there a way to prevent this? Is the drawable always centered? What's the point of being able to add text as well as a draw

Solution 1:

Refer to the "Size and positioning" section in: http://developer.android.com/guide/practices/ui_guidelines/icon_design_tab.html

Most likely you have icons with dimensions that are under the incorrect resolution level (ldpi, mdpi, hdpi). This happened to me when my icons were 30x30 under ldpi. I resized them to 28x28 and put them under mdpi as the documentation suggests.

In addition, the documentation recommends against using colors, especially for unselected tabs as you have done. Making them grayscale and using the gray/white paradigm makes it look a lot cleaner with that theme.

Solution 2:

in each instance that I've used this, Its worked for me, but for you the only thing I see that may help, is try upping the padding just a tiny bit, check out if it works better with more padding to the word

Post a Comment for "Why Is The Drawable Overlapping The Text In My Tabview"