Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Button moves when adding multiple line text

I'm trying to add multiple lines of text to a button but when trying the answers from this question:

"https://stackoverflow.com/questions/8103776/how-can-i-display-multiple-lines-of-text-on-a-button/8103880#8103880"

My button moves down, or adds a margin above itself. Any ideas why?

like image 687
gatzkerob Avatar asked May 06 '12 16:05

gatzkerob


1 Answers

Try to set android:baselineAligned="false" in layout where button is placed.

Check this topic also: Alignment issues with two-line button.

like image 56
bogumil Avatar answered Nov 12 '22 02:11

bogumil