private void initData() { selectedApps = new ArrayList<App>(); apps = ComplexPreferences.getObject( getApplicationContext(), Constants.ExistedApp, new TypeReference<ArrayList<App>>() {}); appsAdapter = new AppsAdapter(getApplicationContext()); lvApps.setAdapter(appsAdapter); }
public void initView() { lv = (MyListView) layout.findViewById(R.id.lv_circle_apps); lv.setAdapter(appsAdapter); }