how to get a list item position by clicking the button inside it?

前端 未结 8 627
余生分开走
余生分开走 2020-12-09 16:48

actually I\'ve read some previous questions about this...

this is the code that I use

auto = (ListView)findViewById(R.id.auto);
String[] projection =         


        
8条回答
  •  渐次进展
    2020-12-09 17:44

    I think one more best approach is there.You can add one tag as position with the button using (button.setTag()) method and whenever user will click button just take the tag of this button. it will more easy.

    Thanks and Regards Rahul

提交回复
热议问题