Skip to content

Android CarouselLayout null reference exception #1

@BryceAtCinemark

Description

@BryceAtCinemark

I wrote a simple little app to test Xamarin Forms custom controls, namely your CarouselLayout. I contacted a few people and was told that Calvin might be able to help. I have a really odd issue and I suspect (hope) it is just a rookie mistake on my part. I cannot get the CarouselLayout to work on Android. I am getting a null reference exception because the underlying hScrollView is null.

The call in Android CarouselLayoutRenderer:OnElementChanged that returns a null is the GetField("hScrollView"...) call. Line 37. I see in the debugger the Tracker is null etc. Am I missing some sort of configuration piece in Android? The iOS side works great.

Anyway if someone (Calvin maybe? I was told he wrote the control.) could contact me offline I'd be happy to provide the little demo project. I'm thinking someone with more experience would probably be able to see the issue immediately. I am rather new to the Android side of things. I appreciate any help!

bbrooks@cinemark.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions