how to add cancel button inside spinner
<p>I want to add cancel button inside of spinner how to add cancel button in spinner without </p>

<p>using alert dialog please give me an example..</p>

<p>spinner = (Spinner) findViewById(R.id.spinner);</p>

<pre><code>    ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getApplicationContext(),R.layout.test_list_item,stringArray);


    adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);


    spinner.setAdapter((adapter));
</code></pre>
