开发者

How to reduce the width of dropdown list of spinner in android?

In landscape mode, I have a spinner in my app. When I click the spinner, the dropdown list occupies the entire w开发者_JAVA技巧idth of the screen. I want to reduce the width to the specific value. May I know how to do this ?

Senthil Thanks in Advance.


Change your spinner layout width properties in the xml file to

android:layout_width="50dip" or android:layout_width="wrap_content"


Change your spinner layout width properties in the xml file to

android:dropDownWidth="50dp"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜