微调项未显示的下拉列表,但微调的顶部 [英] Spinner item not showing as dropdown but in the top of the spinner

查看:155
本文介绍了微调项未显示的下拉列表,但微调的顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用飞旋在我的code,我曾在我的XML声明

i am using spinner in my code which i had declare in my xml

XML code的微调: -

xml code for spinner:-

<Spinner
        android:id="@+id/spinner"
        android:layout_width="180dp"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/button1"
        android:layout_marginTop="133dp"
        android:drawSelectorOnTop="true" />

,从而可以看出,微调是下一个按钮也是在布局XML。现在,当我的所有数据正常运行我的应用程序它的加载,但该项目在微调的顶部显示不下来在spinner.Mentioning的侧截图它是如何出现

so as can be seen that the spinner is down the one button which is also in that layout xml .Now when i run my app its loading all data correctly but the item is showing in the top of the spinner not in the down side of the spinner.Mentioning the screenshot how it appear

但读音字使用微调平行同向按钮的下拉微调效果正在非常fine.Here是如何出现的屏幕截图。

but when i m using the same spinner parallel to the button the spinner dropdown effect working very fine.Here is the screenshot how it appear.

所以任何告诉我怎样才能解决这类scenario.thanks对于任何答复。

so can any tell me how can we solve this kind of scenario.thanks for any reply.

推荐答案

试试这个希望这将帮助你。

try this hope this will help you

 android:spinnerMode="dropdown"

这篇关于微调项未显示的下拉列表,但微调的顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆