for (int index = 0; index < size; index++) {
String string = "" + index;
list.add( string );
}
PagingDataSource dataSource = new SimplePagingDataSource(list);
Paginator paginatorImpl = new Paginator(dataSource);
//paginatorImpl.setDataSource( dataSource );
paginator = paginatorImpl;
paginator.reset();
}