Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最初に行が選択されたときにリストの行にボタンを追加し、その行が2回目に選択されたときにボタンを削除しようとしています
ありがとう
customListAdapterのgetview関数で、ボタンの可視性をGONEとして維持するレイアウトを膨らませ、listitemをクリックすると、そのボタンの可視性がVISIBLEに変更されます。
行のxmlで、ボタンを追加し、可視性をView.GONEに設定します。その行にclickListenerを追加して、View.VISIBLEとView.GONEの間で可視性を切り替えます。