3

I am making a quiz app. It uses Horizontal pager, in each item there is a question and 4 option radio buttons.i have 10 items in horizontal pager. if i reach to last page and swipe back to first the selections made are gone and the page is loaded freshly. How to save the state of the content item even when it is scrolled to last page. When using normal view pager we can set page offset which is not available in jetpack compose.How to solve this issue ?. Please help. I am using this version

implementation "com.google.accompanist:accompanist-pager:0.21.2-beta"
implementation "com.google.accompanist:accompanist-pager-indicators:0.21.2-beta"
Harish Padmanabh
  • 307
  • 4
  • 17

0 Answers0