简体   繁体   中英

How to show and hide the button on click listview item?

I have one listview and in the listview im using one progressbar, and i want when i'll click on the progressbar then there must show three buttons below the progressbar, and when i'll again click on the progressbar then these these three button must be hide.?? please help me.....

have you tried this?

container is the where has your 3 buttons

progressbar.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {

    container.setVisible(View.GONE);

 }
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM