Once we know which array to use, we use that array as the data source of the spinner by creating an adapter (in this case, an ArrayAdapter) that we pass in to the spinner.
一旦知道使用哪个数组,我们就通过创建一个传入微调器的适配器(在这里是一个ArrayAdapter),使用那个数组作为微调器的数据源。
There are several implementations of the Adapter class, for specific tasks, such as the CursorAdapter for reading database data from a Cursor, or an ArrayAdapter for reading from an arbitrary array.
针对特定的任务有着很多不同的Adapter类实现,比如CursorAdapter依据Cursor读出一个数据库的数据,而一个ArrayAdapter则从任一个数组进行读取。