Is it possible for content (size) to match parent?

时间:2016-04-25 09:17:26

标签: android android-layout android-xml

If I have a text in a button that has match_parent, is it possible to make the textSize as big as possible without cropping the text? Preferably in XML and with a maximum setting so it doesn't become too big. In other words I'd like it to make it just fit if it would split a long word, otherwise stick to the preset size.

1 个答案:

答案 0 :(得分:0)

This way, but it does not look clearly in my opinion you should to try to change your design to avoid this requirement