Code example for PagerAdapter

Methods: notifyDataSetChanged

0
	} 
 
	public void setNewData(List<View> views) {
		this.views = views;
		count = (isEndless ? Integer.MAX_VALUE : this.views.size());
		this.notifyDataSetChanged();
	} 
 
	@Override 
	public int getCount() { 
		return count;
	} 
 
	public void setEndless(boolean isEndless) {
		this.isEndless = isEndless;
		if (this.views != null) {
			count = (isEndless ? Integer.MAX_VALUE : this.views.size());
		} 
	} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE