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

Implemented Divider Widget on Android. #2181

Merged
merged 7 commits into from
Nov 1, 2023

Conversation

proneon267
Copy link
Contributor

Implemented the Android Divider widget. Additionally, I've enabled the Android divider test in the testbed and verified that this PR successfully passes it. Here's the example divider app:

With the audits complete, I will now focus on creating tests for #1930. I'm submitting this PR to avoid any potential loss of progress. Please review it at your convenience, no rush! 😊

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@freakboy3742
Copy link
Member

One quick observation: if you're adding a new widget, you also need to update the support matrix: https://github.com/beeware/toga/blob/main/docs/reference/data/widgets_by_platform.csv

@proneon267
Copy link
Contributor Author

Done. Thanks!

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

Definitely does what it says :-)

The only question I have is whether TextView is the appropriate native widget for this. I know Android has a definite lean towards "every widget is a text input"... but it seems like overkill for a Divider which has no interactive component. In fact, the only thing this seems to be using the view for is rendering a 1px wide background. Could android.view.View be used instead?

@proneon267
Copy link
Contributor Author

Done. Using View seems to be more appropriate. Thanks!

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

Looks good - thanks for the contribution!

@freakboy3742 freakboy3742 merged commit 00bccef into beeware:main Nov 1, 2023
35 checks passed
@proneon267 proneon267 deleted the patch-21 branch November 3, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants