Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

[Refactor] Refactor the UI packages according to their function #252

Closed
huangyz0918 opened this issue May 26, 2019 · 0 comments · Fixed by #256
Closed

[Refactor] Refactor the UI packages according to their function #252

huangyz0918 opened this issue May 26, 2019 · 0 comments · Fixed by #256
Assignees

Comments

@huangyz0918
Copy link
Contributor

huangyz0918 commented May 26, 2019

Problem description

This is a refactor work related to the views.

Why we need this refactor

  • Since we will add the bluetooth as the secondary method next step, we need to build more lists, building more similar adapters is not a good idea.
  • Our application has many similar list/recycler views, we don't need so many adapters actually, we can build our own view types or using some open source multiple-types lib like MultiType.

I think both Activity and Fragment are actually View objects, including RecyclerView’s Adapter, so I want to tidy them up a bit. Like putting them in a ui package, that will make the code structure clearer, and this step is necessary if we are going to use the MVVM structure or MVP in the future.

Expected behavior

Simplify the adapter code to make it easier to update the UI next.

Other information

@opendatakit-bot claim

@huangyz0918 huangyz0918 changed the title [Refactor] Refactor the adapters using viewtype [Refactor] Refactor the UI packages according to their function May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants