Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove unwanted spacing between lines in TextView

I have a textview which I use custom font on.

The textview is multiline... The problem is that there's big space between each line to the other line.

Is there a way to decrease the spacing between lines?

android:lineSpacingExtra Isn't help me, As I need the opposite thing

like image 472
dor506 Avatar asked Dec 04 '22 03:12

dor506


2 Answers

I think you could use a negative value in android:lineSpacingExtra

like image 95
Barak Avatar answered Dec 29 '22 14:12

Barak


Adding a negative value for android:lineSpacingExtra didn't do anything for me.

Instead I just put any value less than 1.0 for android:lineSpacingMultiplier i.e. android:lineSpacingMultiplier="0.7"

like image 30
IsaiahJ Avatar answered Dec 29 '22 12:12

IsaiahJ