I want to change the text of the list item (ListView). The element is formed dynamically in the adapter.
public View getView(int position, View convertView, ViewGroup parent) { textView = new TextView(context); textView.setText(Title[position]); textView.setTextSize(30); return textView; }
In the handler I want to change its text when I click on an item
Trying to do so but failing
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { ((TextView)view.findFocus()).setText("asdasdasda"); }
Please tell me how you can solve this problem. Thank you in advance.