user1156041
user1156041

Reputation: 2195

How to make unlimited count view pager adapter and view pager

I have table to show the data. The user can see the data day by day. I would like to accomplish it by using view pager. The problem is that in view pager, there is limitation for count. I have no idea how to make the unlimited view pager. Is that possible? I would like to hear any suggestion or tutorials.

Thanks.

Upvotes: 1

Views: 656

Answers (1)

Triode
Triode

Reputation: 11357

final int VIRTUAL_VIEW_COUNT = Integer.MAX_VALUE;
@Override
public int getCount() {
    return VIRTUAL_VIEW_COUNT;
}

Pass the maximum value of integer as the count.

Upvotes: 3

Related Questions