Why can't I set text to an Android TextView? -


I'm having trouble setting text in TextView:

  TextView android:  

editable = "true"

My In Java it seems that this should work:

  text = (EditText) findViewById (R.id.this_is_the_id_of_textview); Text.setText ("Test");  

But it's not. Can anyone tell me what is wrong here?

In your Java class, type " EditText " TextView ". Since you have declared TextView in the layout.xml file


Comments