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 trial

Android Build an Interactive Story App (Retired) Finishing the User Interface Formatting Strings

alex lewis
alex lewis
1,324 Points

my pageText is gray. i think that's why my mName isn't showing up on the app.

the code is the same i believe. not sure why it's gray.

2 Answers

Brent Lageson
Brent Lageson
4,452 Points

I had the exact same issue and it took a while to figure out.

Right under that pageText that is grey there is the line mTextView.setText(mCurrentPage.getText()); Change that to mTextView.setText(pageText); and it should work!

alex lewis
alex lewis
1,324 Points

thanks, that worked. why didn't it work when it's the same as what he had?... or did i copy it wrong or something?