Padding for a Spinner in a Style

Posted by jax on Stack Overflow See other posts from Stack Overflow or by jax
Published on 2010-05-21T07:46:25Z Indexed on 2010/05/21 7:50 UTC
Read the original article Hit count: 167

Filed under:

How to you add a default padding for Spinners using a style, I tried the following:

<style name="Spinner" parent="@android:style/Widget.Spinner">
    <item name="android:background">@drawable/spinner</item>
    <item name="android:padding">20dp</item>
</style>

the background works but there is still no padding around the control.

© Stack Overflow or respective owner

Related posts about android