Gallery of TextViews, using styles etc
<p>I want to use <code>Gallery</code> as a horizontal menu so I've taken the code for the <a href="http://developer.android.com/resources/tutorials/views/hello-gallery.html" rel="nofollow">Gallery tutorial</a> to use <code>TextView</code>s instead of <code>ImageViews</code> by using a <code>String[]</code> and changing the adapter's <code>getView((...)</code> method as follows...</p>

<pre><code>public View getView(int position, View convertView, ViewGroup parent) {
    TextView tv = new TextView(mContext);
    tv.setText(mMenuItems[position]);
    tv.setLayoutParams(new Gallery.LayoutParams(150, 100));
    return tv;
}
</code></pre>

<p>The problem I have now is as shown in the image...</p>

<p><img src="http://i.stack.imgur.com/78WkM.png" alt="enter image description here"></p>

<p>As you can see, what should be the 'selected' <code>TextView</code> is 'greyed' (although I can select it) and the other items are 'highlighted and I'd like the reverse. So the question is what is <code>Gallery</code> doing to cause this and how do I override it?</p>

<p>UI stuff is a weak point of mine (I'm learning gradually honest) but I think I need to define styles as explained here...<a href="http://developer.android.com/guide/topics/ui/themes.html#DefiningStyles" rel="nofollow">Definining styles</a> and I understand what's being explained but how do I get the <code>Gallery</code> to automatically apply the styles I define? Do I have to apply the styles the <code>TextView</code>s I return from the adapter's <code>getView(...)</code> method or can I apply them 'globally' to the <code>Gallery</code> somehow?</p>
