CarouselSample | Simple carousel implemented using Swift programming | Carousel library
kandi X-RAY | CarouselSample Summary
kandi X-RAY | CarouselSample Summary
Simple carousel implemented using Swift programming language.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CarouselSample
CarouselSample Key Features
CarouselSample Examples and Code Snippets
Community Discussions
Trending Discussions on CarouselSample
QUESTION
Using a custom renderer one can disable the swiping gesture of an CarouselPage
on iOS
like so:
ANSWER
Answered 2019-Apr-05 at 00:53A couple of things.
For Android the view you are looking for is not a ScrollView
but a ViewPager
.
This can be found under the index 0 with the GetChildAt method.
Also, why are you using VisualElementRenderer
as the parent class of your CustomCarouselPageRenderer
. Instead use the CarouselPageRenderer
as you did with iOS.
One last thing is that on Android the Scroll of a ViewPager cannot be disabled. To get this behavior you can listen to the Touch event. Setting the Handled property of TouchEventArgs to true will prevent the scrolling from happening.
Your whole class would look something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CarouselSample
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page