Android: Get the listview item from button clicked in custom listview

后端 未结 5 686
终归单人心
终归单人心 2021-02-02 16:17

I have a custom ListView with two button and I when I click either button on any row I want to get the text label on the Listview and for now just popup a toast with it. So far

5条回答
  •  情书的邮戳
    2021-02-02 16:54

    simply use getItem() and pass the position Ex:getItem(position).getID() here getID() method is getter method

提交回复
热议问题