开发者

Android, how to add some right padding to text in a spinner?

I'm developing an Android app (API level 8).

How do I add some right padding to the style of spinners layout?

With the default (开发者_运维问答Theme.black) style, the right arrow box is placed too close to the end of text in the (closed) spinner.


In your xml, use the android:paddingRight attribute.


In your XML file for the layout, use, for example

android:layout_marginLeft="5dip"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜