SOS: Problems with Android ListView

Source: Internet
Author: User

============ 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.