Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户通过按下轨迹球按钮选择 ListView 项目时,会调用哪个“on”事件?我困住了 onKeyDown、onTouchEvent、onTrackballEvent 但这些都不是……谢谢
那是一个“点击”并触发您的OnItemClickListener(或者onListItemClick()如果您正在实施ListActivity)。
OnItemClickListener
onListItemClick()
ListActivity