Q:

focusSearch(int direction)-value of direction?

How to set focus to the first element from the last element in GridView in android?

A:

You can't use focusSearch() to do this, you need to use setSelectedPosition() instead. Focus search just lets you go to the next/previous focusable view on screen.

