title: Selector not working in android gridview
body: <p>I set a selector for android Gridview like this</p>
  
  <pre><code>mygridview.setSelector(R.drawable.my_background);
  </code></pre>
  
  <p>When i click a child in the gridview it is working fine(background is setting) and the backgroud does not disappear after losing focus from gridview.</p>
  
  <p>But when i manually select a child view like <code>mygridview.setSelection(position)</code> it is setting background but <strong>that is disappear when it losing focus from gridview</strong> </p>
  
  <p>by the way my selector is like this:</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
              android:shape="oval"&gt;
              &lt;solid android:color="#08c246"/&gt;
              &lt;padding android:left="-5dp" android:bottom="-5dp" android:right="-5dp" android:top="-5dp"/&gt;
  
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>i have tried by setting <code>android:state_selected</code>  <code>android:state_checked</code> but no use.</p>