Size of my Spinner too big
<p>My huge spinner: <a href="http://i.stack.imgur.com/zNxdX.jpg" rel="nofollow">http://i.stack.imgur.com/zNxdX.jpg</a></p>

<p>As you can see in the picture, my spinner is way too huge. I can't seem to find the problem.
Here is the code:</p>

<pre><code>    RelativeLayout.LayoutParams lpSpinner = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
    spTest = new Spinner(this);
    String[] spinnerArray={"1","2","3","4","5","6","7","8","9","10"};
    ArrayAdapter&lt;String&gt; spinnerArrayAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_dropdown_item_1line, spinnerArray);
    spTest.setAdapter(spinnerArrayAdapter);
    spTest.setId(4);
    lpSpinner.addRule(RelativeLayout.ALIGN_RIGHT, lblText.getId());
    relative.addView(spTest, lpSpinner);
</code></pre>

<p>what am i doing wrong?</p>
