Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int getItemCount() {
- switch (STATE) {
- case BOTH:
- // if both, return 2 additional for header & footerResource
- return list.length + 2;
- case ITEM:
- // if just items, return just the length
- return list.length;
- default:
- // if either or, return 1 additional
- return list.length + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement