Giter VIP home page Giter VIP logo

Comments (11)

alexrainman avatar alexrainman commented on June 12, 2024

I dont know how MyImages may look but they maybe a list of string representing the url of the image, dont?

Take a look how you are doing the binding of Image source, it should be something like this:

Also, if you are going to build an image carousel, use FFImageLoading or you will get OutOfMemory crash in Android.

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

Image Source="{Binding .}"

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

Take a look at this repo as example: https://github.com/alexrainman/TabbedCarouselView

from carouselview.

pasha-o avatar pasha-o commented on June 12, 2024

thanks for the prompt response ,
MyImages is an observableCollection

VehicleImages = new ObservableCollection();

i will have a look - weird part is I got it working for the first time and not anymore :)

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

The plugin has been well tested by the community and lot of issues has been fixed and functionality added. The only trick with images is to use it with FFImageLoading.

from carouselview.

pasha-o avatar pasha-o commented on June 12, 2024

in your sample Source="{Binding .}" what is dot for?

from carouselview.

pasha-o avatar pasha-o commented on June 12, 2024

hi @alexrainman

soi tried your suggestion with using the FFImageLoading and it only worked once. every other try throws the exception i posted before .

Java.Lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0, found: 1 Pager id: io.SensoDrive.ResParkAuto:id/pager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class md5fa3be16b83ce3acd3be83265686c14de.CarouselViewRenderer_PageAdapter
01-10 22:13:59.977 I/MonoDroid(25794): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3511/501e63ce/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
01-10 22:13:59.977 I/MonoDroid(25794): at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x000a7] in /Users/builder/data/lanes/3511/501e63ce/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:12083
01-10 22:13:59.977 I/MonoDroid(25794): at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00022] in /Users/builder/data/lanes/3511/501e63ce/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:41
01-10 22:13:59.977 I/MonoDroid(25794): at Android.Views.View.Measure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x0002a] in /Users/builder/data/lanes/3511/501e63ce/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Views.View.cs:13953
01-10 22:13:59.977 I/MonoDroid(25794): at Xamarin.Forms.Platform.Android.ViewRenderer`2[TView,TNativeView].OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00037] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\ViewRenderer.cs:136
01-10 22:13:59.977 I/MonoDroid(25794): at Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean p0, System.Int32 p1, System.Int32 p2, System.Int32 p3, System.Int32 p4) [0x00008] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:240
01-10 22:13:59.977 I/MonoDroid(25794): at (wrapper dynamic-method) System.Object:88906e53-6f2c-4892-a1bb-b5c7d2b6af4d (intptr,intptr,bool,int,int,int,int)
01-10 22:13:59.977 I/MonoDroid(25794): --- End of managed Java.Lang.IllegalStateException stack trace ---

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

Please share a demo reproducing the issue.

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

I don't really know what are you doing. Please share a demo.

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

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

from carouselview.

alexrainman avatar alexrainman commented on June 12, 2024

This is what i have done that is community visible:

  • Alex has been pretty active sharing his knowledge and answering questions in StackOverflow, GitHub and Xamarin Forums.
  • Alex has been open sourcing Xamarin components and plugin with the community, with more of 10 repositories being maintained on GitHub.
  • One of Alex's Xamarin.Forms plugin, the CarouselView, is currently being pulled into the Xamarin.Forms core (xamarin/Xamarin.Forms#853). As an stable widget, this control has become the standard for Xamarin.Forms carousel screens with more that 16K downloads in NuGet and more than 100 solved and not open issues.
  • Another Alex's plugin, the SegmentedControl (https://github.com/alexrainman/SegmentedControl), is a big candidate to be also pulled into Xamarin.Forms core.
  • Plus Xamarin.Forms UI related plugins, Alex shares plugins to set app icon Badge, Google Analytics and KeyChain access.
  • Alex shares his knowledge about cutting edge technologies like Couchbase NoSQL and MobileIron integration with Xamarin Apps.

from carouselview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.