Android - ListView - performItemClick

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

    this may be old but this may help :

    lvList.performItemClick(null, index, lvList.getItemIdAtPosition(index) ); 
    

    NOTE : the first param is null and will still work, if you have a custom adapter, convertView will be filled with custom layout and view and such.

    -cheers / happy codings.

提交回复
热议问题