Code example for GridView

Methods: focusableViewAvailable

public class SherlockGridFragment extends SherlockFragment { 
    final private Handler mHandler = new Handler();
    final private Runnable mRequestFocus = new Runnable() {
        public void run() { 
    final private AdapterView.OnItemClickListener mOnClickListener
            = new AdapterView.OnItemClickListener() { 
        public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 
            onGridItemClick((GridView) parent, v, position, id); 
    private ListAdapter mAdapter;
    private GridView mGridView;
    private View mEmptyView;
    private TextView mStandardEmptyView;
    private View mProgressContainer;
    private View mGridContainer;
Connect your IDE to all the code out there  Get Codota for Java