-
-
Notifications
You must be signed in to change notification settings - Fork 778
Description
Describe the bug
The documentation for DetailedList currently says:
On platforms that use swipe interactions, the primary action will be associated with “swipe left”, and the secondary action will be associated with “swipe right”. Other platforms may implement the primary and secondary actions using a different UI interaction (e.g., a right-click context menu). The primary and secondary actions will only be enabled in the DetailedList UI if a handler has been provided.
While technically correct, this is somewhat misleading for Android. Most people would say that Android is a "platform that uses swipe interactions"; but Android implements actions as a pop up menu.
Steps to reproduce
See the documentation for DetailedList.
Expected behavior
- As an immediate bugfix, the documentation should be updated to better describe which platforms use which UI interaction
- Longer term, we should investigate if swipe-based interactions can (or even should) be implemented on Android.
Screenshots
No response
Environment
- Operating System: Android
- Python version: All
- Software versions:
- Toga: 0.5.2
Logs
Additional context
It's not clear to me from the Material3 guidelines if swipe interactions on a DetailedList would be idiomatic on Android. If it's not, the "enhancement" portion of this ticket can be ignored.
From a quick API search, it definitely isn't a feature that is easily exposed as an "on_fling" handler (or similar) - it looks like it would need a whole RecyclerView infrastructure piece.