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
iamjay
Posts: 18
Registered: ‎04-28-2012
My Device: Playbook & Dev Alpha
My Carrier: AIS

Rearranging items in a list

Will the ListView support item rearranging by drag and drop in the upcoming SDKs? Or is there a UI guideline for something like this?

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer
My Carrier: developer

Re: Rearranging items in a list

I don't see anything in the current documentation that suggests this is there.

Bear in mind that ListView does not "own" the data and merely shows whatever the data model tells it to show.

 

Ideally you would want drag from an item of the list, with the list as a drop target.   Since the data model is in charge of what is displayed, this would presumably request a reorder in the data model.  So this would not be supported if the data model holds a sorted list, for example.

 

I'm thinking what you want is your own data model, perhaps interceding between the ListView and yet another data model.   Your data model would have an invocable method to move items, and you would respond to touch by starting some drag UI.

 

I haven't checked how much of that is there currently, but see:

http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/Using-your-own-DataModel/ta-p/...

and

http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/Using-a-Custom-DataModel-to-Fi...

 

If you feel there are features you need to implement these, please make a feature request in Issue Tracker: follow instructions in: http://supportforums.blackberry.com/t5/Java-Development/Developer-Issue-Tracker/td-p/271768

 

Stuart

Please use plain text.
New Contributor
turitu
Posts: 5
Registered: ‎01-05-2011
My Device: Z10, Q10, Z30
My Carrier: Telenor

Re: Rearranging items in a list

Rearrange in the ListView is a one of the Cascades UI FW features that we consider has high prio. I cannot say exactly when you will have a verison of the SDK with this feature, but it is in the works.

 

-Markus Landin (Product Manager, Cascades Tooling)

Please use plain text.
Developer
supraking
Posts: 98
Registered: ‎10-04-2010
My Device: Not Specified

Re: Rearranging items in a list

Any progress on this? Kind of a big one. Apple supports it natively, Android doesn't, so there's a big +1 for BB10 if it's baked in!
Please use plain text.
Developer
minmax
Posts: 46
Registered: ‎09-25-2012
My Device: Dev Alpha, Z10
My Carrier: MTS

Re: Rearranging items in a list

+1
I want it too!!!
Please use plain text.
Developer
ondrejandrej
Posts: 73
Registered: ‎03-17-2013
My Device: Dev Alpha + Z10
My Carrier: I carry it myself.

Re: Rearranging items in a list

 

Any news on this?


SQL Terminal – command-line interface to local SQLite database
Please use plain text.
Developer
BBSJdev
Posts: 6,085
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Rearranging items in a list

It's still in the roadmap but the fact that the Product Manager said 10 months ago that this is a high priority and several NDK interations later it's still not there I think you can come to your own conclusions.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Rearranging items in a list

10 months ago? ;-) think you lost a year somewhere in calculations. ;-)

Please use plain text.
Developer
BBSJdev
Posts: 6,085
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Rearranging items in a list

Is this not 2013! :-)

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
slashkyle
Posts: 814
Registered: ‎10-16-2012
My Device: Red Z10, Dev Alpha C
My Carrier: Telus

Re: Rearranging items in a list

[ Edited ]

actually it's 2014 :smileywink: haha... It is possible to move list items, how I'm not sure but I do know it is, just check out Lazy Lists, you can re-arrange list items and it appears to be a native app.

 

http://appworld.blackberry.com/webstore/content/32820912/

 

My guestimation of how they do this is an invisble container that they insert the held list item data into, then they make it appear above.  using touch propagation listeners they could tell when each objects touch is started and exitied, when it exits they adjust a variable to keep track of the new desired index and then when the user releases the item they set it to wherever index their variable had last been set to based on their movement along the list

Please use plain text.