I have a ListView lv, and i have a Button delete at the bottom of the Listview (the button is outside of the listview). There is a problem that how i can deal with the button (such as change background or set text for the button) from inside the listview. I have my own adapter, and i think that i have to handle the button’s changing at the public void getView(int pos, View convertView, ViewGroup parent) function. Does anyone have any idea?
P/s: the main point of this question is: “How to deal with other elements from inside a list view?”.
Any suggestion is welcome!
I have a ListView lv , and i have a Button delete at the
Share
In the activity ,
Now in the adapter you can set OnClickListener for the button.