protected void populateList() { final RMBTMainActivity activity = getRMBTMainActivity(); final SectionListAdapter sectionListAdapter = new SectionListAdapter(activity, R.layout.preferences_category); // add filter options for (final MapListSection mapListSection : activity.getMapFilterListSelectionList()) sectionListAdapter.addSection( mapListSection.getTitle(), new MapListSectionAdapter(activity, mapListSection)); // / final ListView listView = (ListView) view.findViewById(R.id.valueList); listView.setAdapter(sectionListAdapter); listView.setItemsCanFocus(true); listView.setOnItemClickListener(this); }
@Override public Object getItem(final int position) { return mapListSection.getMapListEntryList().get(position); }
@Override public int getCount() { return mapListSection.getMapListEntryList().size(); }