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"
精彩评论