In an XML file, a textview was being made, now I want to edit it's text property from the .java source file. I tried referring to its id, but eclipse wont recognize it; "cannot be resolved"
relevant part from XML:
<TextView
android:id="tb_01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
from the source:
Intent intent = getIntent();
String text = intent.getStringExtra(text);
tb_01.setText(text);
also, could someone explain, what this does in an xml, within a editText tag:
android:id="@+id/edit_message"