alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 176 forks source link

CarouselView Not appearing on Android #24

Closed AshaneSilva closed 8 years ago

AshaneSilva commented 8 years ago

Carousel View works fine on IOS but not appearing on android. I called CarouselViewRenderer.Init(); method on my droid project after Forms.Init(this, bundle);functions. CVButton is not visible on IOS It doesn't throw any Exceptions for above issues

alexrainman commented 8 years ago

Which version of XForms please?

AshaneSilva commented 8 years ago

2.3.2.127

alexrainman commented 8 years ago

Question, did you update to latest Xamarin.Android? Version 7?

alexrainman commented 8 years ago

Because i cannot reproduce this.

AshaneSilva commented 8 years ago

Xamarin.Android 7.0.0.18

alexrainman commented 8 years ago

Thats the problem. Xamarin.Android 7 has a confirmed issue. Please update to latest one and test or, you will have to downgrade to version 6.

alexrainman commented 8 years ago

I am updating to latest one and i will do some test. What i know is that latest Xamarin update has introduced lot of bugs.

AshaneSilva commented 8 years ago

Ok ill try the above solution and update. What about CVButton not showing on IOS

alexrainman commented 8 years ago

All custom controls will be deprecated in upcoming release except for CVLabel, so instead you use the standard control specifying the HeighRequest with OnPlatform:

<Button Text="Remove this page" Clicked="Handle_Clicked">
    <Button.HeightRequest>
        <OnPlatform x:TypeArguments="x:Double"
            Android="48"
            iOS="44"
            WinPhone="32"/>
    </Button.HeightRequest>
</Button>

Or by code like this:

Device.OnPlatform(
    iOS: () => myButton.HeightRequest = 44,
    Android: () => myButton.HeightRequest = 48,
    WinPhone: ()=> myButton.HeightRequest = 32
);

Let me know if works for you.

alexrainman commented 8 years ago

XForms (2.3.2.127) and Xamarin.Android (7.0.1.2). I also installed SDK 24 with build tools 24.

marlonribeiro01 commented 8 years ago

I uninstalled Xamarin e reinstalled the Cycle 7 stable version and it's all working now! (Including another bug which was crashing my app using the MediaPlugin when opening the camera on some devices). Thanks!

AshaneSilva commented 8 years ago

Thank you for the support Device.OnPlatform( iOS: () => myButton.HeightRequest = 44, Android: () => myButton.HeightRequest = 48, WinPhone: ()=> myButton.HeightRequest = 32 ); solution worked. But buttons and labels are not appearing on list view. Do I need to uninstall xamarin completely? (Including xamarine.android , Xamarin.iOS, Xamarin.Mono)

alexrainman commented 7 years ago

If my work is helping you, please help me back: https://xamarinhq.wufoo.com/forms/nominate-a-xamarin-mvp/

alexrainman commented 7 years ago

This is what i have done that is community visible:

ahmedelashkerpersonal commented 7 years ago

I had the same problem, but it was due to some proxy configurations made in the network I'm working at.

I have no idea though why it's allowing the iOS simulator and not the Android emulator to load online images.

mariaguutierrez commented 6 years ago

Hi! We're having the same problem. The CarouselView is working great with iOS, but when we're trying to run it on Android it doesn't show any data. We're using Android Mono 8.

Are you planning to work to fix this error or do you recommend us to use another control?