Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 163
Registered: ‎04-28-2012
My Device: BlackBerry 9800
My Carrier: BlackBerry

How to create Vertical Carousel slide show for images?

Hi,

 

     I am trying to create VerticalCarousel of images.Any one can provide me the sample code for creating it.

 

Regards,

Naresh Kodumuri.

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: How to create Vertical Carousel slide show for images?

a customized ListView where each ListItem is only an Image doesn't work for you ?

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 163
Registered: ‎04-28-2012
My Device: BlackBerry 9800
My Carrier: BlackBerry

Re: How to create Vertical Carousel slide show for images?

Hi ekke,

 

             Then how can i do it. can u give any idea.

 

Regards,

Naresh Kodumuri.

Regular Contributor
Posts: 60
Registered: ‎12-19-2012
My Device: BB10 Alpha B
My Carrier: SFR

Re: How to create Vertical Carousel slide show for images?

I achieved it this way :

 

ListView {
id: mapListView
snapMode: SnapMode.LeadingEdge
flickMode: FlickMode.SingleItem
objectName: "mapListView"
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
layout: StackListLayout {
orientation: LayoutOrientation.LeftToRight
}
listItemComponents: [
ListItemComponent {

MapItem {
}
}
]



}

 

MapItem is then just an ImageView that takes all height and width. Then choose correct scalingMethod for your ImageView

Developer
Posts: 163
Registered: ‎04-28-2012
My Device: BlackBerry 9800
My Carrier: BlackBerry

Re: How to create Vertical Carousel slide show for images?

Hi,

 

      It's working fine.I want to show the previous and next image with some animations like the below screen shot.List with animations

 

I need the effect like this(like carousel effect ) .please assist me.

 

Regards,

Naresh Kodumuri.

Regular Contributor
Posts: 60
Registered: ‎12-19-2012
My Device: BB10 Alpha B
My Carrier: SFR

Re: How to create Vertical Carousel slide show for images?

Sorry, I don't understand the animation you want with the screenshot you posted :

 

Developer
Posts: 163
Registered: ‎04-28-2012
My Device: BlackBerry 9800
My Carrier: BlackBerry

Re: How to create Vertical Carousel slide show for images?

 

ok,

The above screen shot is showing list of items.At a time only 3 items will appear in the list(here all the items are images).The current list item is the middle one and next image is the last one and prev image is the first one if u scroll down ,the next image should appear in the center and current image should move to the top in the same shape as it is shown in the list.

 

Regards,

Naresh Kodumuri.