且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的源码,微调:)

更新时间:2021-12-24 01:56:32

请看看这个例子从Android开发者网站;

Please have a look at this example from the Android Developer site;

http://developer.android.com/resources/samples/Spinner/src/com/android/example/spinner/SpinnerActivity.html

您需要设置一个OnItemSelectedListener每个纱厂和onItemSelected(),你应该能够得到微调值和更新其他微调/ EditText上。

You need to set an OnItemSelectedListener for each of the Spinners and in onItemSelected() you should be able to get the spinner value and update the other Spinner/EditText.

干杯, ^ h