Comments (11)
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.
Image Source="{Binding .}"
from carouselview.
Take a look at this repo as example: https://github.com/alexrainman/TabbedCarouselView
from carouselview.
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.
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.
in your sample Source="{Binding .}" what is dot for?
from carouselview.
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.
Please share a demo reproducing the issue.
from carouselview.
I don't really know what are you doing. Please share a demo.
from carouselview.
If my work is helping you, please help me back: https://xamarinhq.wufoo.com/forms/nominate-a-xamarin-mvp/
from carouselview.
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)
- Object Reference Error in Xamarin.Forms 4.8. and higher HOT 5
- Rotate mobile orientation
- iOS: Elements inside carousel are not accessible HOT 1
- Error linking release version 6.0 HOT 1
- error: invalid path '.vs/CarouselView/xs/project-cache/Demo.iOS-Debug|iPhoneSimulator.json'
- 1 mb nuget size?
- [iOS] ShowIndicators at false doesnt work HOT 4
- [BUG][Android] Crash when CarouselView is nested in a ScrollView, inside a TabViewItem (XCT) HOT 6
- not appearing on Android while ok on iOS HOT 4
- [Bug?] CarouselViewControl FlowDirection property wont set the flowdirection HOT 2
- [Request] Start loading the next & previous view HOT 1
- first view is empty sometimes on version 6
- CarouselView does not appear on app start HOT 4
- Using Xamarin.Forms 5.0.0.2244 with upgrade to version 6.0, iOS does not exist in the namespace CarouselView.FormsPlugin
- Xamarin UWP Position Property does not update
- PeekAreaInsets property not found
- Couldn't Viewable Frame Bottom Content Something Covered Bottom Area on Xamairn IOS
- MAUI support HOT 5
- Last item in carouselview is not showing
- (iOS) 6.0.0 CarouselViewRenderer.Dispose Null reference Unhandled Exception:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carouselview.