-
Notifications
You must be signed in to change notification settings - Fork 248
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
Support choice orientation in boolean view. #1710
Support choice orientation in boolean view. #1710
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1710 +/- ##
=============================================
+ Coverage 0 41.65% +41.65%
- Complexity 0 377 +377
=============================================
Files 0 150 +150
Lines 0 5320 +5320
Branches 0 959 +959
=============================================
+ Hits 0 2216 +2216
- Misses 0 2762 +2762
- Partials 0 342 +342
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@santosh-pingle Could we not use |
Advantage of having constraintLayout flow is that if views does not get fit on same line then it get wrap on next line. |
Since the boolean view has just two options, do you think overflow will still be an issue? |
|
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.
We should also add a unit test to check that choiceOrientation
is properly getting applied in the view.
datacapture/src/main/res/layout/questionnaire_item_boolean_type_picker_view.xml
Outdated
Show resolved
Hide resolved
...google/android/fhir/datacapture/views/QuestionnaireItemBooleanTypePickerViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
@shelaghm fyi please take a look at the screenshot above |
@santosh-pingle See below for feedback on how to adjust the padding so that the buttons look more balanced. See screenshot on how to adjust the padding. Otherwise, it looks great to me. |
|
...google/android/fhir/datacapture/views/QuestionnaireItemBooleanTypePickerViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
...google/android/fhir/datacapture/views/QuestionnaireItemBooleanTypePickerViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
...google/android/fhir/datacapture/views/QuestionnaireItemBooleanTypePickerViewHolderFactory.kt
Outdated
Show resolved
Hide resolved
...le/android/fhir/datacapture/views/QuestionnaireItemBooleanTypePickerViewHolderFactoryTest.kt
Outdated
Show resolved
Hide resolved
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 @santosh-pingle
* Support choice orientation in boolean view. * Resolve conflicts. * Remove commented code. * fix lint error * Address review comments. * Add padding * Address review comment. * Address review comments. Co-authored-by: Santosh Pingle <[email protected]>
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #1515
Description
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: Feature
Screenshots (if applicable)
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.