Skip to content

Carousel - Detecting current item #833

@denison-chua

Description

@denison-chua

Hi, how would you go about detecting the current position that the carousel has snapped to, given that setNumViewsToShowOnScreen is set to 1?

`void buildModels() {

List<PhotoViewModel_> photoModels = new ArrayList();
for (photo in photos) {
photoModels.add(new PhotoViewModel_()
.id(photo.id())
.url(photo.url))
}

new CarouselModel_()
.id("carousel")
.models(photoModels)
.addTo(this);
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions