有人可以在类型类定义
之后向我解释|
,
,->
和listview.setOnItemClickListener(new AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> arg0, View view, int position, long arg3)
{
String selectedFromList =(String) (listview.getItemAtPosition(position).toString());
Log.d("Selected: ", selectedFromList );
int selectedItemPosition = listview.getItemAtPosition(position));
Log.d("Selected item position :- ", selectedItemPosition);
}
});
是什么意思?
答案 0 :(得分:1)