Trying to implement an android spinner. but when I touch it, the dropdown menu doesn't open. nothing happens. why? <p>I was trying to implement an android spinner, a button, if I click should open a dropdown menu showing three things: "bluetooth, speak, headphones" but all i see now is the button, (no text), and when I click on it, nothing happens. what am i missing?</p> <p>here is my code: in the xml i have:</p> <blockquote> <pre><code> &lt;RelativeLayout android:id="@+id/audio_routing" android:layout_width="40dp" android:layout_height="40dp" android:padding="10dp" &gt; &lt;Spinner android:id="@+id/audio_routing_spinner" android:layout_width="20dp" android:layout_height="40dp" android:contentDescription="@string/audio_routing_desc" android:scaleType="fitXY" android:src="@drawable/bluetooth" /&gt; &lt;/RelativeLayout&gt; </code></pre> </blockquote> <p>in the strings file i have:</p> <blockquote> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; ... &lt;string name="audio_routing_desc"&gt;Audio Routing Button&lt;/string&gt; &lt;!-- Audio Routing Drop Down List --&gt; &lt;string-array name="audio_routing_array"&gt; &lt;item&gt;Bluetooth&lt;/item&gt; &lt;item&gt;Headphones&lt;/item&gt; &lt;item&gt;Speaker&lt;/item&gt; &lt;/string-array&gt; </code></pre> </blockquote> <p>in my java file i have:</p> <blockquote> <pre><code> void audio_routing() { kcLogger.info("audio_routing", "audio_routing function is called"); Spinner spinner = (Spinner) mKCSWindowView.findViewById(R.id.audio_routing_spinner); ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(service,R.array.audio_routing_array,android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapter(adapter); spinner.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) { // TODO Auto-generated method stub kcLogger.info("audio_routing", "onItemSelected"); } @Override public void onNothingSelected(AdapterView&lt;?&gt; parent) { // TODO Auto-generated method stub kcLogger.info("audio_routing", "onNothingSelected"); } }); } </code></pre> </blockquote>