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 a Simple Android App Basic Android Programming Accessing Views in Code: Assigning Variables

The red text in textView isn't going away after i press alt+enter, Why?

mport android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Button; import android.widget.Textview;

public class BatZing extends AppCompatActivity { // declare our view variables private Textview mFactTextView; private Button mShowFactButton;

@Override

see the Button widget worked because I imported it manually . but the TextView is still red. and I dont know how to change it , other than what instructor told me.

1 Answer

okay well. I pop up menu came up and i just created a class. i was looking for import options. I figured it out. thanks guys!

Yasser Alzahrani
Yasser Alzahrani
205 Points

THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU i was depressed and thought this course was over for me but you mentioned the class and i checked and it's working now