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

Fixed styling in select_one/select_multiple widgets with minimal appearance #3204

Merged
merged 4 commits into from
Jul 17, 2019

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jul 11, 2019

Closes #3190

What has been done to verify that this works as intended?

I tested the attached for which contains sample for both select_one/select_multiple widgets with minimal appearance.

Why is this the best possible solution? Were any other approaches considered?

It's just a fix for those two widgets. There is no other solution.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

The implemented changes are related only to those two widgets (SpinnerWidget and SpinnerMultiplWidget) so testing the attached form should be ok there is no need to test other widgets or other functionalities.

Do we need any specific form for testing your changes? If so, please attach one.

style-example.xml.txt
style-example.xlsx

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

Copy link
Member

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that in an ideal world there would be an abstraction one step before widgets that ensures this consistent behavior for all selects. But that can be an exercise for another day.

It's likely some users will have been relying on unstyled choices with the minimal appearance but there's not a whole lot we can do about that.

@bognasoldev89
Copy link

Tested with success

Verified on Android: 4.2, 4.4, 5.1, 6.0, 7.0, 8.1

Verified cases:

  • Styling choices doesn’t work with minimal appearance on ODK Collect v1.22.4 and older versions
  • Fixed styling in select_one/select_multiple widgets with minimal appearance
  • Tested attached forms
  • Rotating during selecting answers on widgets
  • Swiping during selecting answers
  • Closing the app during selecting answers
  • Saving forms and reopening them
  • Dismissing changes
  • Minimizing the app during selecting answers
  • Blocking mobile phones during testing

Below screenshots from v1.22.4 on the left and fix on the right

Screenshot_20190717-051826 Screenshot_20190717-051647
Screenshot_20190717-051833 Screenshot_20190717-051706

@opendatakit-bot unlabel "needs testing"
@opendatakit-bot label "behavior verified"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styling choices doesn't work with minimal appearance
4 participants