开发者

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

开发者 https://www.devze.com 2023-03-28 06:04 出处:网络
I\'m developing an Android app (API level 8). How do I add some right padding to the style of spinners layout?

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

精彩评论

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

关注公众号