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 trialCraig Blanckaert
2,146 PointsSetting the textView gravity to center_horizintal crams all the text to the right side. What happened?
Around 5:00 in the video I am instructed to set the textView gravity to center_horizontal, but if I do all the text gets smooshed to the right of the green vertical center line and cropped off. The same thing happened to my text on the button, but I was less concerned about that since it was going to be replaced anyway.
2 Answers
Matheus G Oliveira
9,682 PointsHey Craig,
check if your layout is match_parent both for height and width and see if it works
Craig Blanckaert
2,146 PointsHeh, so I open up Eclipse to check on your suggestion, and everything looks fine. Perhaps it was a fluke on the part of the ADE. I do appreciate the quick reply :)