tags:

views:

71

answers:

2

gridview.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView parent, View v, int position, long id) {
            Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show();
        }
    });
A: 

The ? means that the datatype is unknown and it can be any type.

Roflcoptr
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