Usage of Android control spinner (1)
•
Android
1、 Method of use
1. Create a spinner control in layout
2. Add a data source and display format to the data adapter
3. Add a data adapter to the spinner control
spinner1.setAdapter(adapter);
2、 Renderings and codes
fry.Activity01
/SpinnerDemo/res/layout/activity01.xml
3、 Attention
1、android.R.layout.simple_ spinner_ dropdown_ item
2. String [] city = new string [] {"Beijing", "Macao"}; String usage
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码