安卓中spinner 控件怎么添加itemn
1个回答
2016-05-16
展开全部
private Spinner mSpinner;
mSpinner = (Spinner) view.findViewById(R.id.spinner);
mAdapter = new MyAdapter(getActivity());
mSpinner.setAdapter(mAdapter);
ArrayList<String>() mLists = new ArrayList<>();
mAdapter.setList(mLists);
详细:https://www.baidu.com/s?wd=%E5%AE%89%E5%8D%93%E4%B8%ADspinner%20%E6%8E%A7%E4%BB%B6%E6%80%8E%E4%B9%88%E6%B7%BB%E5%8A%A0itemn&ie=utf-8
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询