12

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?

Community
  • 1
  • 1
gatzkerob
  • 877
  • 2
  • 12
  • 32

1 Answers1

21

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

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

Community
  • 1
  • 1
bogumil
  • 381
  • 1
  • 5
  • 12
  • 2
    One of my buttons is 2 lines of text when viewed in a language other than english and the button kept moving up on the screen for multi-line text. I added android:baselineAligned="false" to the LinearLayout it was in and it's fixed - THANK YOU! This should be marked as the answer. – DiscDev Feb 21 '13 at 03:53