This is simple to do in xml. This example makes the spinner look like an edit text.
In styles xml file add
<style parent="@android:style/Widget.Spinner" name="SpinnerAsEditText"><item name="android:background">@android:drawable/edit_text</item> </style>
In layout file add spinner.
<Spinner android:id="@+id/spinner1" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/SpinnerAsEditText" />