Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdlpuxdzztg
8,243 PointsEven TextView Width and Height
Hello.
So I'm trying to find a way to even out my TextView's width and height. What I have right now is something like this (TextView with uneven width and height):
+---+
| T |
+---+
What I want (TextView with even width and height):
+-----+
| T |
+-----+
Please help.
2 Answers
Vechnet makuyana
3,870 Pointsshouldn't those properties be solved in the xml file you just set it to have the same values for width and height
Vechnet makuyana
3,870 PointsThst plus your text size say 40sp
dlpuxdzztg
8,243 Pointsdlpuxdzztg
8,243 Pointslayout_width = wrap_content, layout_height = wrap_content...