Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App Creating the Screen Layout Adding a Button

Wejdan Al Mubarky
PLUS
Wejdan Al Mubarky
Courses Plus Student 1,451 Points

Text issue

I have an issue with the long text! when I write a long text it doesn't show the entire text, it goes off the screen! I don't know why it doesn't make the text two lines instead of cutting the text? any idea?

3 Answers

Osvaldo Restrepo
PLUS
Osvaldo Restrepo
Courses Plus Student 483 Points

What happens is that you used the Plain TextView. Use the normal TextView, in the Toolbox. Not the "Plain Textview", but the "TextView".

Tim Lee
Tim Lee
968 Points

It is probably because you didn't assign any values for the width and length. If you set the values to match_parent and not wrap_content I think you should be good to go

Wejdan Al Mubarky
Wejdan Al Mubarky
Courses Plus Student 1,451 Points

unfortunately, that dosen't solve the problem! I really don't know what's the matter with it. it is working perfectly in the video and i just followed the exact Instructions!! but thank you anyway

please assign the proper width and height width must be match_parent and reduce text size if it is increasing along with that if even its not fitting into screen add scroller into it , this probably only occur when there is so much content in your screen .