Code example for FragmentStatePagerAdapter

Methods: notifyDataSetChanged

0
	} 
	 
	public void setPages(List<GridPage> pages) {
		this.pages.clear();
		this.pages.addAll(pages);
		notifyDataSetChanged(); 
	} 
	 
	public JSONObject getData() {
		return response;
	} 
	 
	public void configurePages() throws JSONException { 
		pages.clear();
		 
		// Calculate the mean value for interestLevel 
		double mean = 0d;
		int count = 0;
		JSONArray list = response.getJSONArray("list");
		List<JSONObject> stories = new ArrayList<JSONObject>();
		for(int i = 0; i < list.length(); i++) {