Skip to content
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

Android CarouselLayout null reference exception #1

Open
BryceAtCinemark opened this issue Nov 4, 2014 · 0 comments
Open

Android CarouselLayout null reference exception #1

BryceAtCinemark opened this issue Nov 4, 2014 · 0 comments

Comments

@BryceAtCinemark
Copy link

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!

[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant