Android - ListView - performItemClick

前端 未结 24 1267
清歌不尽
清歌不尽 2020-11-29 03:10

I\'m facing some difficults when I try to use the performItemClick funcion of the ListView.

All I want to do is to perform a click programatically i

24条回答
  •  北海茫月
    2020-11-29 03:51

    mList.performItemClick(
            mList.getAdapter().getView(mActivePosition, null, null),
            mActivePosition,
            mList.getAdapter().getItemId(mActivePosition));
    

    Where mActivePosition is your click position! All the best! :)

提交回复
热议问题