Android - ListView - performItemClick

前端 未结 24 1274
清歌不尽
清歌不尽 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 04:04

    I tried the code below and it worked.

    getListView().performItemClick(null, 0, getListAdapter().getItemId(0));
    

    The first parameter (view) can be null.

提交回复
热议问题