Questions tagged «android-spinner»

微调器是一种控件/小部件,允许用户从组中选择一项,例如下拉列表...

10
如何将Spinner默认值设置为null?
我正在尝试使Spinner加载而没有选定的值。用户选择一个值后,它将带他们到另一个页面。 事实证明,这是一个问题,因为当前页面只是在用户获得选择权之前立即加载。 我的Spinner类的设置方法与Google的设置方法相同:http : //developer.android.com/resources/tutorials/views/hello-spinner.html 因此,基本上,是否有可能在不选择任何内容的情况下加载微调器,因为目前,它会加载我的字符串数组中的第一项。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.