-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Conversation
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 |
Done. Thanks! |
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.
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?
Done. Using View seems to be more appropriate. Thanks! |
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.
Looks good - thanks for the contribution!
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: