I have a custom ListView with a custom ArrayAdapter. One row consists of 10 buttons. I cannot change the title of the buttons after clicking the button. Inside the getView method, I collect a holder for all of my buttons. The click listener is in the main action, it works correctly (I think so), I can get a link to the button:
MyHolder h = (MyHolder) getListView().getAdapter().getView(position, null, null).getTag();
Button b = h.myButton;
now when i call b.getText () it gives me the text with the button pressed. But when I try: b.setText ("xxx"); button text does not change.
any ideas?
Dusan source share