gridview.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View v, int position, long id) {
Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show();
}
});
views:
71answers:
2
A:
The <?> indicates a Generic. Read more at http://java.sun.com/docs/books/tutorial/java/generics/index.html
For a description of all the parameters, refer to http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html
Matty F
2010-07-06 10:16:40