How to get the item id in an onItemClick handler

前端 未结 4 467
花落未央
花落未央 2020-12-16 06:24

I have a category table with two columns category_id and name. I have created a data helper class named CategoryDataHelper. I have a m

4条回答
  •  清歌不尽
    2020-12-16 07:04

    How about in onItemclick:

    categoryCursor.moveToPosition(position);
    

    and then from the returned cursor get the ID from your helper?

提交回复
热议问题