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

Reworked the banner in Ready to send screen using card view #6429

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Sep 26, 2024

Closes #6347

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

I tried making the custom ReadyToSendBanner view extend MaterialCardView, but it displayed gray background corners that I couldn't remove (this might be an Android bug). The solution was to wrap it in an additional FrameLayout, which may seem redundant at first glance.

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 only change is the visual representation of the banner in Ready to send. Its functionality remains the same.

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

No.

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:

  • added or modified tests for any new or changed behavior
  • run ./gradlew connectedAndroidTest (or ./gradlew testLab) and confirmed all checks still pass
  • added a comment above any new strings describing it for translators
  • added any new strings with date formatting to DateFormatsTest
  • 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

@grzesiek2010 grzesiek2010 marked this pull request as ready for review September 26, 2024 09:16
@alyblenkin
Copy link
Collaborator

Could we left align all the text? Now that I'm seeing it, we have space to bring the icon and text closer together in the card. Otherwise, I think this looks really good and it anchors the page well.

@grzesiek2010
Copy link
Member Author

Could we left align all the text? Now that I'm seeing it, we have space to bring the icon and text closer together in the card.

Just text or the icon too? If we align both it will be like this:
Screenshot_1727424085

@alyblenkin
Copy link
Collaborator

Aligning the text was the only issue. I thought the icon looked fine before because the gap with the text looks too big.

@grzesiek2010
Copy link
Member Author

@alyblenkin If only the text is aligned it will be like this, do you think it's better?
Screenshot_1727713717

@alyblenkin
Copy link
Collaborator

alyblenkin commented Sep 30, 2024

The white space around the card makes it difficult to get the spacing right, but I don't want to spend too much more time on it because it's already looking good with the new card and app bar changes.

I think we keep the text aligned but add a bit more space between the icon and text (it almost gives the illusion that the icons are aligned).

Screenshot 2024-09-30 at 11 57 44 AM

@grzesiek2010
Copy link
Member Author

@alyblenkin it's ready.

@grzesiek2010 grzesiek2010 merged commit 9ac6831 into getodk:master Oct 1, 2024
6 checks passed
@srujner
Copy link

srujner commented Oct 2, 2024

Tested with Success!

Verified on device with Android 10 and 13

Verified cases:

@WKobus
Copy link

WKobus commented Oct 2, 2024

Tested with Success

Verified on device with Android 14

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.

Remove grey background on "Ready to send" screen
5 participants