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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 79
Registered: ‎04-04-2013
My Device: BB10 Dev Alpha Simulator
My Carrier: Blackberry

How to create horizontal picker or listview?

Hi,

 

I want to create a horizontal selector (can be a picker or listview) which can select one item and other non selected will be greyed out or lower opacity just like most selector you see in iOS apps. Any idea please?

Regards,

Steve Chan
Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: How to create horizontal picker or listview?

Don't think there's such a thing as horizontal picker, but you can certainly make a horizontal ListView. Can't think of anything that would exactly match what you need, but at least this should be a good starter for 10.

 

ListView {
    layout: StackListLayout {
        orientation: LayoutOrientation.LeftToRight
    }
}

 



Did this post help you? If so, please make sure to "like" it!
Developer
Posts: 79
Registered: ‎04-04-2013
My Device: BB10 Dev Alpha Simulator
My Carrier: Blackberry

Re: How to create horizontal picker or listview?

Thanks, managed to make it scroll horizontally now. The reason why i thought of picker is because there is a highlighter when an item is selected. And picker can only select one item. Possible to do this on listview? I suppose it is possible.
Regards,

Steve Chan
Highlighted
Regular Contributor
Posts: 56
Registered: ‎06-25-2012
My Device: non-blackberry user
My Carrier: Airtel

Re: How to create horizontal picker or listview?

hello steve8820,

 

Ofcourse its possible you can design the delegate in such a manner that you can select one at a time or give it a different look upon selection.

Developer
Posts: 79
Registered: ‎04-04-2013
My Device: BB10 Dev Alpha Simulator
My Carrier: Blackberry

Re: How to create horizontal picker or listview?

Hi coolneo,

Thats what im trying to achieve, do you have any sample codes that illustrate it? I have no idea how it should be.

Thanks
Regards,

Steve Chan