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
Implement touch interception for layouts on Android #13725
base: main
Are you sure you want to change the base?
Conversation
Probably/maybe related: #10040 |
Any idea when this will be available ? Adding empty TapGesture is not very efficient. |
0ecae70
to
040c1a5
Compare
The PR broke InputTransparent. |
@@ -25,8 +25,20 @@ public partial class WrapperView : PlatformWrapperView | |||
|
|||
AView _borderView; | |||
|
|||
WeakReference<IOnTouchListener> _touchListener; |
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.
What keeps a strong reference to the IOnTouchListener
? It looks like the .NET GC would collect it. Java would then try to call TouchEventInterceptor+OnTouchListener
and won't be able to.
Does the event continue working after some GCs occur?
040c1a5
to
5311098
Compare
Tests failing? |
Hi @mattleibow. We have added the "s/pr-needs-author-input" label to this issue, which indicates that we have an open question/action for you before we can take further action. This PRwill be closed automatically in 14 days if we do not hear back from you by then - please feel free to re-open it if you come back to this PR after that time. |
5311098
to
56e9ee4
Compare
f7bbdeb
to
56d0f2b
Compare
Hi @mattleibow. |
790c5fa
to
a564221
Compare
/rebase |
a564221
to
043035b
Compare
/rebase |
043035b
to
c9e55b9
Compare
Description of Change
Android needs custom logic to "intercept" touch events when tapping on a view that covers another view.
We already have the
InputTransparent
concept, but this is for children of a layout. The touch interception is needed to stop taps on a layout/view from passing through that layout onto the view below it.Tasks
Issues Fixed
Fixes #10252