============ Problem Description ============
Multiple buttons Total One listview, how to add a ListView footerview in one of the buttons
Like what:
First in to the left of the ListView 3 selected, on the right side plus an added Footerview, the left button is clicked on the right side of a listview2, now I think only in the case of click 3, listview2 Add Footerview, and click 1, 2 of the time not to add, how to write this?
Who can teach me
============ Solution 1============
Reference 2 Floor sinat_17841263 's reply:
Quote: Referring to the reply of the 1 floor Lionfresh:
First add the listView2 to the bottom and set it to invisible, then set to visible when you click 3.
This does not work, will show a horizontal line, my solution is to determine the value of the ListView, when equal to 3, add a footerview, otherwise delete Footerview
This seems to be no problem, but click on the listview2 inside the Add button, will be error, do not know why
Report what's wrong.
============ Solution 2============
Reference 5 Floor sinat_17841263 's reply:
Quote: Referring to the reply of the 3 floor Lionfresh:
Quote: Referring to the reply of the 2 floor sinat_17841263:
Quote: Referring to the reply of the 1 floor Lionfresh:
First add the listView2 to the bottom and set it to invisible, then set to visible when you click 3.
This does not work, will show a horizontal line, my solution is to determine the value of the ListView, when equal to 3, add a footerview, otherwise delete Footerview
This seems to be no problem, but click on the listview2 inside the Add button, will be error, do not know why
Report what's wrong.
Quote pointer error, LISTVIEW2 item cannot be clicked
Stick it out and look.
SOS: Problems with Android ListView