Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView item swallows input gesture on Android #15644

Open
sk8ermeb opened this issue Dec 29, 2022 · 0 comments
Open

[Bug] CollectionView item swallows input gesture on Android #15644

sk8ermeb opened this issue Dec 29, 2022 · 0 comments

Comments

@sk8ermeb
Copy link

sk8ermeb commented Dec 29, 2022

CollectionView doesn't handle input gestures. (Appears to consume them) on Android, but does on ios

Description

If you have a blank collection view with no items, there is no way to pass the input gesture to the parent, in this example a stacklayout. It appears the InputTransparent property has no effect on the collection view either. This can be shown with a collection view with no items. If you touch the collection view it will never trigger the item gesture of the parent StackLayout. But if you delete the collection view it will work fine.

Steps to Reproduce

<StackLayout BackgroundColor="Red" VerticalOptions="FillAndExpand">
             <StackLayout.GestureRecognizers>
                 <TapGestureRecognizer 
                                 NumberOfTapsRequired="1"
                                 Command="{Binding CommentTapped}">
                 </TapGestureRecognizer>
             </StackLayout.GestureRecognizers>
               <CollectionView x:Name="addedContactCollection" VerticalOptions="End" BackgroundColor="Blue" InputTransparent="True">
                 <CollectionView.ItemTemplate >
                     <DataTemplate >
                         <StackLayout Padding="10" x:DataType="models:Comment" InputTransparent="True">
                             <Label Text="{Binding CommentText}" 
                             LineBreakMode="NoWrap" 
                             Style="{DynamicResource ListItemTextStyle}" 
                             FontSize="16" />
                         </StackLayout>
                     </DataTemplate>
                 </CollectionView.ItemTemplate>
             </CollectionView>
         </StackLayout>

Expected Behavior

Touching collectionview when the InputTransparent = True should trigger the input gesture for the parent view

Actual Behavior

No input is detected at all on android

Basic Information

  • Version with issue: Xaramin Essentials 1.7.4, Forms 5.0.0.2545

  • Last known good version: N/A

  • Platform Target Frameworks:

    • iOS: 16.2 (iphone 14) (Works)
    • Android: 13.0 (API 33) (Doesn't Work)
  • NuGet Packages: Xaramin Essentials 1.7.4, Xaramin Forms 5.0.0.2545

  • Affected Devices:

Environment

Show/Hide Visual Studio info
Microsoft Visual Studio Community 2022
Version 17.4.2
VisualStudio.17.Release/17.4.2+33122.133
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Community

ASP.NET and Web Tools   17.4.326.54890
ASP.NET and Web Tools

Azure App Service Tools v3.0.0   17.4.326.54890
Azure App Service Tools v3.0.0

C# Tools   4.4.0-6.22565.8+53091686b435746d62a5df56abfab0e71203d83a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Extensibility Message Bus   1.4.1 (main@2ee106a)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio   17.4.19 (8c0a575)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   6.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core)   17.0.0.2246202+61cc048d36a3fc9246d2f04625988b19a18ab8f0
Provides languages services for ASP.NET Core Razor.

TypeScript Tools   17.0.10921.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.4.0-6.22565.8+53091686b435746d62a5df56abfab0e71203d83a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   17.4.0-beta.22512.4+525d5109e389341bb90b144c24e2ad1ceec91e7b
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VSPackage Extension   1.0
VSPackage Visual Studio Extension Detailed Info

Xamarin   17.4.0.301 (d17-4@96af3ae)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.4.0.138 (remotes/origin/d17-4@d36bba3cc9)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.4.2 (c457c97)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   13.1.0.1 (d17-4/13ba222)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: a96bde9
    Java.Interop: xamarin/java.interop/d17-4@fcc33ce2
    SQLite: xamarin/sqlite/3.39.3@23e1ae7
    Xamarin.Android Tools: xamarin/xamarin-android-tools/main@0be567a


Xamarin.iOS and Xamarin.Mac SDK   16.0.0.92 (3dd3dc52c)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Workaround

no workaround found yet

@sk8ermeb sk8ermeb added s/unverified New report that has yet to be verified t/bug 🐛 labels Dec 29, 2022
@jfversluis jfversluis changed the title [Bug] [Bug] CollectionView item swallows input gesture on Android Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants
@jsuarezruiz @sk8ermeb and others