How to Customize the Spinner widget in android?
<p>I am using Spinner control in my application and my Code is</p>

<pre><code>    Spinner s1=new Spinner(this);
    s1.setLayoutParams(new LayoutParams(100,30));
    ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_expandable_list_item_1); 
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    adapter.add("One");
    adapter.add("Two");
    adapter.add("Three");
    s1.setAdapter(adapter);
</code></pre>

<p>This will work fine in linearLayout .when I use the code in the TableLayout, the control is not displayed.I have to generate dynamic layout so i am not using the XML part,only through Java code i am adding the contorls.</p>

<pre><code>TableLayout tl=new TableLayout(this);
TableRow tr=new TableRow(this);
tr.addView(s1);
tl.addView(tr);
</code></pre>

<p>All the components gets added other than Spinner.</p>

<p>So please anyone give some solution for this.</p>
