@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View tabView = inflater.inflate(R.layout.view_recipe_pictures_tab, container, false); builder = new RecipeViewAssistant(getActivity()); builder.loadFromFile(); pAdapter = new PhotoAdapter(getActivity(), builder.getPhotoListModel()); photoListView = (ListView) tabView.findViewById(R.id.listView1); photoListView.setAdapter(pAdapter); return tabView; }
public void onResume() { builder.loadFromFile(); pAdapter = new PhotoAdapter(getActivity(), builder.getPhotoListModel()); photoListView.setAdapter(pAdapter); super.onResume(); }