I'm trying to get the string from my listView item that I click.
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, list);
I have tried accessing it using:
TextView text = (TextView) arg1.findViewById(R.id.text1);
The id of the textView of android.R.layout.simple_list_item_1 is android:id="@android:id/text1" but according to Eclipse text1 cannot be resolved or is not a field
I'm sure I'm making a mistake accessing the default android textView in the simple list item, but I'm not sure how to access it. Any ideas?
android:id="@android:**+**id/text1"?