Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement touch interception on Android
- Loading branch information
1 parent
3c3057b
commit 043035b
Showing
19 changed files
with
747 additions
and
105 deletions.
There are no files selected for viewing
396 changes: 356 additions & 40 deletions
396
src/Controls/samples/Controls.Sample.UITests/Concepts/InputTransparencyGalleryPage.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Android.Content; | ||
using Android.Views; | ||
using AndroidX.AppCompat.Widget; | ||
|
||
namespace Microsoft.Maui.Platform | ||
{ | ||
class MauiImageView : AppCompatImageView, IInputTransparentCapable | ||
{ | ||
public MauiImageView(Context context) : base(context) | ||
{ | ||
} | ||
|
||
bool IInputTransparentCapable.InputTransparent { get; set; } | ||
|
||
public override bool OnTouchEvent(MotionEvent? e) => | ||
base.OnTouchEvent(e) || | ||
TouchEventInterceptor.OnTouchEvent(this, e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.