-
Notifications
You must be signed in to change notification settings - Fork 250
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
Repeated Group Headers #1994
Repeated Group Headers #1994
Conversation
2ab9012
to
f601489
Compare
@shelaghm please take a look at the screenshot! we didn't really know what to do with the heading so used cardinal numbers 1,2,... @kevinmost and i did wonder if there's a group header extension from the FHIR spec we can use... or maybe we can use a placeholder like Group 1, Group 2,... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great pr! love this ❤️. thanks @kevinmost
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireEditAdapter.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireViewItem.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireEditAdapter.kt
Show resolved
Hide resolved
...va/com/google/android/fhir/datacapture/views/factories/QuestionnaireItemViewHolderFactory.kt
Show resolved
Hide resolved
datacapture/src/main/res/layout/repeated_group_instance_header_view.xml
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireAdapterItem.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireEditAdapter.kt
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireResponses.kt
Outdated
Show resolved
Hide resolved
Looks amazing! @kevinmost
|
f601489
to
fc8eba2
Compare
fc8eba2
to
cb62ff6
Compare
Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this @kevinmost!
happy to approve once all comments have been addressed - don't think i have any more comments.
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireAdapterItem.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireAdapterItem.kt
Show resolved
Hide resolved
...oogle/android/fhir/datacapture/contrib/views/PhoneNumberViewHolderFactoryInstrumentedTest.kt
Outdated
Show resolved
Hide resolved
...oogle/android/fhir/datacapture/contrib/views/PhoneNumberViewHolderFactoryInstrumentedTest.kt
Outdated
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireAdapterItem.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireEditAdapter.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/QuestionnaireViewModel.kt
Show resolved
Hide resolved
datacapture/src/test/java/com/google/android/fhir/datacapture/QuestionnaireViewModelTest.kt
Show resolved
Hide resolved
datacapture/src/main/java/com/google/android/fhir/datacapture/extensions/MoreViews.kt
Outdated
Show resolved
Hide resolved
...t/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireItemComponentsTest.kt
Outdated
Show resolved
Hide resolved
...t/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireItemComponentsTest.kt
Outdated
Show resolved
Hide resolved
...t/java/com/google/android/fhir/datacapture/extensions/MoreQuestionnaireItemComponentsTest.kt
Outdated
Show resolved
Hide resolved
...oogle/android/fhir/datacapture/contrib/views/PhoneNumberViewHolderFactoryInstrumentedTest.kt
Show resolved
Hide resolved
...src/androidTest/java/com/google/android/fhir/datacapture/test/QuestionnaireUiEspressoTest.kt
Outdated
Show resolved
Hide resolved
...src/androidTest/java/com/google/android/fhir/datacapture/test/QuestionnaireUiEspressoTest.kt
Outdated
Show resolved
Hide resolved
This change has side effects:
If the following fix is added, then the above-mentioned issues are not seen: |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #726
Description
Add headers to repeated groups.
The header shows the index of the repeated group instance, plus a delete button that removes that entire instance.
Type
Choose one: Feature
Screenshots (if applicable)
Screenshot
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.