Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are some issues on SurveyListAdapter #17

Open
1 of 2 tasks
hoangnguyen92dn opened this issue Nov 25, 2021 · 4 comments
Open
1 of 2 tasks

There are some issues on SurveyListAdapter #17

hoangnguyen92dn opened this issue Nov 25, 2021 · 4 comments

Comments

@hoangnguyen92dn
Copy link

hoangnguyen92dn commented Nov 25, 2021

@ryan-conway
Copy link
Owner

I am curious why do you concatenate the description for the text view description? 🤔

This is an error on my part when testing long survey descriptions, this should be removed asap

By adding l in the adapter, we should avoid modifying the model inside the adapter in my opinion, it could be handled in the mapping step instead.

Noted on this, will adjust

@ryan-conway
Copy link
Owner

Removed description concatenation and created a new class to hold survey list item data in PR #20

@hoangnguyen92dn
Copy link
Author

@ryan-conway I see you updated to use FragmentStateAdapter to show the list of surveys instead of RecyclerView.Adapter with the ViewHolder, could you please share your idea why did you change your mind? 🤔 And I spotted the update outside of the PR #20

@ryan-conway
Copy link
Owner

@hoangnguyen92dn In order to fix the issue with the page indicator dots, I decided to change to a FragmentStateAdapter so that we can make use of a TabLayout with a dot-style tab with its support for sliding tabs so they do not draw off screen. This seemed quicker to implement than with a Decorator as I am more familiar with this solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants