akvo / akvo-flow-mobile

Akvo Flow app
GNU General Public License v3.0
18 stars 16 forks source link

Improve question groups view display #1563

Closed valllllll2000 closed 2 years ago

valllllll2000 commented 4 years ago

We already have this issue https://github.com/akvo/akvo-flow-mobile/issues/1201 for the design but in a support issue there has been a remark:

while we repeat the repeat group questions for more than 30 times, Flow software and mobile phone gets very slow to continue the survey. We are using Samsung Galaxy J2 Pro for this survey. The survey is about water taps within a schemes, and 1 schemes can have as many as 60 taps so in some places we may have to repeat TP group for 60 times or more. Kindly also let us know how can we solve this issue.

I was not able to reproduce the issue on my phone but one reason could be linked to the fact that we use regular LinearLayout inside ScrollView to display all the views. This should be no problem if there are few question in a given group but in the case of many repeated groups or many questions, all the views are in memory even if they do not need to be displayed on the screen. In this case, it would be much better to use a RecyclerView to display those views.

Kiarii commented 3 years ago

(dropping ideas here for when we might address this)

I had considered the use of a backdrop component to better support orientation and navigation in the question group.. From Material documentation it appears Google has not rolled out the backdrop component maybe @valllllll2000 you can confirm this.

The alternative would be to use a Bottom sheet component.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.