SetIncludeFontPadding (boolean includepad) Set whether the TextView includes extra top and bottom padding to make room for accents that go above the normal ascent and descent. The default is true.
3 perfect answer! In xml it is android:includeFontPadding="false" – Patrick Boos Aug 9 at 10:44.
You might want to try aligning the bottom of the left text view with the bottom of the 2nd right text view.
But then the top line would not line up. And actually I do not care about them lining up as much as I would really like to remove the spacing. – George Bailey Jan 22 at 15:50.
To my knowledge this is inherent to most widgets and the amount of "padding" differs among phone manufacturers. This padding is really white space between the image border and the image in the 9 patch image file. For example on my Droid X, spinner widgets get extra white space than buttons, which makes it look awkward when you have a spinner inline with a button, yet on my wife's phone the same application doesn't have the same problem and looks great!
The only suggestion I would have is to create your own 9 patch files and use them in your application. Ahhh the pains that are Android. Edited: Clarify padding vs white space.
This annoyed me too, and the answer I found was that there is actually additional space in the font itself, not the TextView. It is rather irritating, coming from a document publishing background, the limited amount of control you have with Android over typographic elements. I'd recommend using a custom typeface (such as Bitstream Vera Sans, which is licensed for redistribution) that may not have this issue.
I'm not sure specifically whether or not it does, though.
You sentence looks a little broken "....the limited amount of control you have (which is licensed for redistribution) that may not have this issue. " – George Bailey Jan 22 at 17:56 @George Bailey: Sorry, was typing on my phone. Stupid Alt-Delete.
:p – kcoppock Jan 22 at 18:49.
I feel your pain. I've tried every answer above, including the setIncludeFontPadding to false, which did nothing for me. My solution?
Layout_marginBottom="-3dp" on the textView gives you a solution for the bottom, BAM! Although, -3dp on layout_marginTop fails....ugh.
When I have a TextView with a \n in the text,, on the right I have two singleLine TextViews, one below the other with no spacing in between. I have set the following for all three TextViews. The first line of the left TextView lines up perfectly with the top right TextView.
The second line of the left TextView is a little higher than the second line of the bottom right TextView. It seems that there is some kind of hidden padding on the top and the bottom of the TextViews. How can I remove that?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.