我试图在第一次选择行时在列表行中添加一个按钮,并在第二次选择该行时将其删除
谢谢
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.
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