-
Notifications
You must be signed in to change notification settings - Fork 302
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
Conversation
@googlebot I signed it! |
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. |
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
2. Passing Questionnaire and QuestionnaireResponse to as Fragment.arguments
…ject throws "parcelable encountered ioexception writing serializable object" when app is minimized
… in questionnaire activity
…nt and return the current Questionnaire response
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.