Android : Spinner初始化时填充默认值数据
---------------------------------------华丽的分割线-----------------------------------------
ArrayAdapter<String> adapter = new ArrayAdapter<String> (this, android.R.layout.simple_layout, /*here is your array list*/); spinner.setAdapter(adapter); int position = adapter.getPosition(/*here is some string in your array list*/); spinner.setSelection(position , true);
相关推荐
绿豆饼 2020-04-10
狼窝 2020-03-20
Mexican 2011-01-20
满城风絮 2011-09-06
yxx0 2015-04-15
ruanjianxiong 2016-09-20
fanleiym 2017-02-09
learningITwell 2016-08-18
virusplayer 2015-04-15
Ifree团队 2013-07-08
emptoney 2013-03-19
toperfect 2013-03-19
yxx0 2013-01-22
tufeizhang 2012-11-30
maplele 2012-07-27
najiutan 2012-02-26