标签: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; } }
标签:android io os 使用 ar java for 数据 sp
原文地址:http://www.cnblogs.com/liangxieliang56/p/4001917.html