标签:android io os ar 使用 java for sp 数据
============问题描述============
public class TowFragment extends Fragment { private ListView listview = null; private MyDao myDao = null; private List<String> listData = null; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.tow, container, false); listview = (ListView) view.findViewById(R.id.listview); myDao = new MyDao(getActivity()); listData = myDao.selectedAllRecord(); listview.setAdapter(new ArrayAdapter<String>(getActivity(), android.R.layout.simple_expandable_list_item_1, listData)); return view; } }
============解决方案1============
标签:android io os ar 使用 java for sp 数据
原文地址:http://www.cnblogs.com/lmyangbk/p/4038749.html