2

我试图在第一次选择行时在列表行中添加一个按钮,并在第二次选择该行时将其删除

谢谢

4

2 回答 2

2

in your getview function of customListAdapter inflate a layout in which keep visibility of button as GONE,then onclick of listitem change the visibility of that button to VISIBLE.

于 2012-10-18T12:12:27.093 回答
0

in your row xml, add a Button and set visibility to View.GONE. Inplement a clickListener on that row that will toggle visibility between View.VISIBLE and View.GONE

于 2012-10-18T12:12:13.740 回答