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.
クラスを拡張していない場合、OnItemClickListenerイベントを設定するにはどうすればよいですか?ListviewListActivity
OnItemClickListener
Listview
ListActivity
誰かが私に例を教えてもらえますか?
使用しているアクティビティにリスト ビューがあることを願っています....
listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { // Whatever you want to do. } });
それはあなたが探しているものですか?