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
steve8820
Posts: 75
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
Please use plain text.
Developer
mdodd
Posts: 187
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!
Please use plain text.
Developer
steve8820
Posts: 75
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
Please use plain text.
Regular Contributor
coolneo
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.

Please use plain text.
Developer
steve8820
Posts: 75
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
Please use plain text.