Selecting first item in GridView can't be clicked
<p>I have Button with background images (instead of ImageViews) so i get my position using
    selectedIndex = (Integer) v.getTag();
somehow i can't click the first one , but after i click the remaining images the index 0 image will show up even when you clicked the other images.</p>

<pre><code>Button buttonView;
        if (convertView == null) { // if it's not recycled, initialize some
                                    // attributes
            buttonView = new Button(mContext);
        } else {
            buttonView = (Button) convertView;
        }

        buttonView.setLayoutParams(new GridView.LayoutParams(95, 95));
        if (chartWidth &gt; 0 &amp;&amp; chartWidth &lt;= 240)
            buttonView.setLayoutParams(new GridView.LayoutParams(55, 55));
        buttonView.setPadding(3, 3, 3, 3);
        buttonView.setTag(position);
        // buttonView.setBackgroundResource(mThumbIds[position]);
        try {
            Class&lt;drawable&gt; res = R.drawable.class;
            Field field = res.getField(iconnames[position]);
            int drawableId = field.getInt(null);
            buttonView.setBackgroundResource(drawableId);
        } catch (Exception e) {
            // Log.e("MyTag", "Failure to get drawable id.", e);
        }

        buttonView.setOnClickListener(SCCreateSelectIconView.this);
        buttonView.setId(R.id.iconButton);
        return buttonView;
</code></pre>
