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

Submit button placement #139

Closed
wants to merge 48 commits into from
Closed

Submit button placement #139

wants to merge 48 commits into from

Conversation

joiskash
Copy link
Collaborator

@joiskash joiskash commented Jan 8, 2021

This PR addresses issue #131 . The questionnaire_fragment.xml used a linear layout which resulted in the submit button vanishing when the questionnaire is long. As advised in issue #131, the submit button should be pinned to the top right corner. I have used a constraintLayout to get this done.

@google-cla
Copy link

google-cla bot commented Jan 8, 2021

@googlebot I signed it!

@jingtang10
Copy link
Collaborator

jingtang10 commented Jan 8, 2021

I think if we follow Fred's suggestion in #131 we'd have to consider not rendering the submit button as part of the library at all. So, the library is in charge of the questionnaire items and collecting answers, but the application would render a button and if the user clicks that button the application will ask the library (the questionnaire fragment) what has been recorded by the user.

I think if we do keep the button (and perhaps that should be an option) in the library, then it perhaps should be another view holder type in the recycler view. Same thing with the header (questionnaire title).

@yigit for comment too.

@joiskash joiskash changed the title Kj/submit button placement Submit button placement Jan 12, 2021
jingtang10 and others added 23 commits January 20, 2021 17:11
2. Bug fixes to the tests to use Material components correctly
2. Added newInstance in companion object to get the questionnaire from Parent activity
… activity is first created.

2. Passing questionnaire to fragment via newInstance
joiskash and others added 22 commits January 20, 2021 17:11
2. Passing Questionnaire and QuestionnaireResponse to as Fragment.arguments
…ject throws "parcelable encountered ioexception writing serializable object" when app is minimized
…nt and return the current Questionnaire response
@joiskash joiskash closed this Jan 20, 2021
@joiskash joiskash deleted the kj/submit-button-placement branch January 20, 2021 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants