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!
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
Masrur Chowdhury1,484 Points
in the codeline mFactTextView = findViewById (R.id.factTextView) factTextView is in red for me. How to fix?
my code is copied word for word as on the video, except factTextView is not recognized by AndroidStudio in this specific line of code.
check res > layout > activity_fun_facts.xml. (in android view) should have [android:id="@+id/factTextView"] inside of [TextView]
think this as selector in html&css