正在加载图片...
41108 ■ListDisplay User Interaction in List View Android iPhone WindowsMobile Blackberry User setListAdapter()to inflate Webos the list view using the adapter Ubuntu Windows7 If the user select in the list a list entry Max OSX the method onListItemclick() will be called.This method allows to access the selected element. @Override protected void onListItemClick(ListView 1,View v,int position,long id){ super.onListItemClick(1,v,position,id); /Callback function when an item in the list is clicked /ListView 1:The ListView where the click happened /View v:The view that was clicked within the ListView /int position:The position of the view in the list /long id:The row id of the item that was clicked@Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); // Callback function when an item in the list is clicked // ListView l: The ListView where the click happened // View v: The view that was clicked within the ListView // int position: The position of the view in the list // long id: The row id of the item that was clicked } User Interaction in List View • User setListAdapter() to inflate the list view using the adapter • If the user select in the list a list entry the method onListItemClick() will be called. This method allows to access the selected element. 7
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有