简体   繁体   English

如何在单击列表视图项上显示和隐藏按钮?

[英]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.?? 我有一个listview,并且在listview im中使用一个进度条,我想要当我单击进度条时,进度条下面必须显示三个按钮,而当我再次单击进度条时,这三个按钮必须隐藏。 please help me..... 请帮我.....

have you tried this? 你尝试过这个吗?

container is the where has your 3 buttons 容器是您的3个按钮所在的位置

progressbar.setOnClickListener(new OnClickListener() { progressbar.setOnClickListener(new OnClickListener(){

@Override
public void onClick(View v) {

    container.setVisible(View.GONE);

 }
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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