Android开放微调与一键点击 [英] Android OPEN spinner with single button click
本文介绍了Android开放微调与一键点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经实现按钮,点击并作为描述的微调打开对话框里面的这里
I have implemented button which clicks and opens dialog with spinner inside as described here
然而,这两次点击。一打开对话框,一个用于打开微调。我想微调器只需单击按钮打开?如何才能做到这一点?
However this is two clicks. One to open dialog and one to open spinner. I want the spinner to open with a single click of the button? How can this be done?
反正是有只开放式微调的按钮点击W / O将对话框。如果不是我怎么能打开对话视图,且具有微调的同时打开。
Is there anyway to just open spinner from button click w/o going to dialog. If not how can I open dialog view and have the spinner open at same time.
推荐答案
只是把这个在你的button.onClick
Just put this in your button.onClick
spinner.performClick();
这篇关于Android开放微调与一键点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文