mentorship-android icon indicating copy to clipboard operation
mentorship-android copied to clipboard

Set off screen page limit in Viewpager

Open Priyansh-Kedia opened this issue 4 years ago • 15 comments

Describe the bug The requests page uses a Viewpager to show the pending, past and all requests. The current app does not set off screen page limit.

To Reproduce Steps to reproduce the behavior:

  1. Go to Request page

Expected behavior The request page should have a screen page limit

Additional context Offscreenpagelimit should be set in this case as we have just three pages and all of them can be kept active at once. This would save time in data fetching as there will be less time spent to create the new views as the user goes back and forth.

Priyansh-Kedia avatar Apr 14 '20 14:04 Priyansh-Kedia

@m-murad Please share you views.

Priyansh-Kedia avatar Apr 14 '20 14:04 Priyansh-Kedia

Makes sense to me, we can do some major refactoring here. Can you use the ViewPager2 library to implement this. The offScreenPageLimit can be set to 2.

But before that please follow the issue template and update the description

m-murad avatar Apr 14 '20 15:04 m-murad

@m-murad Yes I think migrating to ViewPager2 would be good as it is adds enhanced functoinalities.

How do you think I should proceed?

I will update the issue description.

Priyansh-Kedia avatar Apr 14 '20 15:04 Priyansh-Kedia

Update the issue description. Replace ViewPager with ViewPager2 in the project.

m-murad avatar Apr 14 '20 15:04 m-murad

@m-murad I think there is an issue for migrating to ViewPager2. What should be done in that case?

Priyansh-Kedia avatar Apr 14 '20 15:04 Priyansh-Kedia

This is the issue.

Priyansh-Kedia avatar Apr 14 '20 17:04 Priyansh-Kedia

Hello @m-murad What should you think should be done in this issue?

Priyansh-Kedia avatar May 20 '20 19:05 Priyansh-Kedia

You can go ahead and send a PR for this

m-murad avatar May 20 '20 19:05 m-murad

Ok

Priyansh-Kedia avatar May 20 '20 19:05 Priyansh-Kedia

@m-murad Sorry for inactivity I will try to send a PR till this weekend

Priyansh-Kedia avatar Jun 05 '20 21:06 Priyansh-Kedia

@epicadk @vj-codes in issue #755 i've migrated viewPager to viewPager2 so is this issue still available to be worked upon ? If yes i would love to take it up :-)

CodeChamp-SS avatar Feb 28 '21 13:02 CodeChamp-SS

@epicadk @vj-codes in issue #755 i've migrated viewPager to viewPager2 so is this issue still available to be worked upon ? If yes i would love to take it up :-)

This can be put on hold till the Viewpager2 pr is merged.

epicadk avatar Mar 01 '21 04:03 epicadk

@epicadk @vj-codes in issue #755 i've migrated viewPager to viewPager2 so is this issue still available to be worked upon ? If yes i would love to take it up :-)

This can be put on hold till the Viewpager2 pr is merged.

hmm ok.

CodeChamp-SS avatar Mar 01 '21 05:03 CodeChamp-SS

Can i work on this

kartikeysaran avatar Mar 01 '21 09:03 kartikeysaran

Can i work on this

This issue is on hold. Please find one that is marked as status available.

epicadk avatar Mar 01 '21 10:03 epicadk