I have a Spinner with an ArrayAdapter that feeds values into it. The layout for these views looks something like this:
<TextView
android:text="Household Income: "
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="center_vertical" />
<Spinner
android:id="@+id/incomespinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="2dip" />
The problem is that the text is too long to represent, and the result is a very, very ugly counter. As seen in the screenshot:

(source: janusz on janusz.de )
I tried to pass the Id of my own TextView to the adapter, but every time a counter should be displayed, I get an exception that the specified Id is invalid:
04-26 17:38:39.695: ERROR/AndroidRuntime(4276): android.content.res.Resources$NotFoundException: Resource ID
Where should I define a TextView? In a separate XML file? With the surrounding group?
Would it help me a lot if I could see an example of adapter initialization and textview definition?