Implement touch interception for layouts on Android#13725
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. |
|
|
||
| AView _borderView; | ||
|
|
||
| WeakReference<IOnTouchListener> _touchListener; |
There was a problem hiding this comment.
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
|
Could you rebase Matt? |
…ption # Conflicts: # src/Controls/tests/TestCases.Shared.Tests/Tests/Concepts/InputTransparencyGalleryTests.cs # src/Core/src/Platform/Android/MauiTextView.cs # src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
|
Hi, do you have any ideal when this fix will be released? Thank you so much. |
|
Please, any update here? Thank you. |
|
This may be the fix I need for my project, is there any target version for this? Thanks! |
|
closing this for now If this seems good to still get in for NET10, create a new PR :-) |
Description of Change
Android needs custom logic to "intercept" touch events when tapping on a view that covers another view.
We already have the
InputTransparentconcept, 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