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.
07-30-2012 01:31 AM
ListView has this tendency to consume all available vertical space that its container will allow, and also provide its own scrolling. However, I really don't want it to do this. What I want to do, is have a non-scrollable ListView in a Container with other elements that appear at the bottom of the list. (I could then throw this whole Container inside its own ScrollView, of course).
Is there any way to do this currently?
07-30-2012 05:04 PM
But that's not really what I want. That'll give me kinda what I have now, which is a scrollable ListView in the middle of an otherwise non-scrollable page. What I want, is for the user to be able to scroll down to the bottom of the list, and see non-ListView controls accessible below.
In other words, I want the ListView to behave as a control who's vertical size is dictacted by the necessary space for showing all its elements. Not the size of its container, nor infinity, which are the only obvious options right now.
07-31-2012 02:58 AM
07-31-2012 03:19 PM
I am trying to see if you can have a ListView data model which content type would vary depending on the position on the list (different container if the last item) but I am not certain this is possible;
In this specific case, you may need to create a custom control, which contains a ListView and a container at the bottom for your buttons/other controls, whose position is a function of your ListView. You would have to manually control the vertical size of the list container as a function of the number of items in the list.
I will need to dig deeper. If may also be of use to log a feature request for such a component if you feel this could serve uses across the community: https://www.blackberry.com/jira/secure/Dashboard.j
07-31-2012 03:56 PM
Assuming I can make it work, having the ListView's size set to "height of items * number of items" would almost get me there. (after I'm done pulling my hair out figuring out all the QML layout/model/list convolutions necessary to figure that one out) However, I'd still need to actually have a way to *disable* the scrolling behavior of the ListView itself, or I'd have a very awkward scroll-within-a-scroll user experience.
I'm probably just going to have to write up a feature request ticket for this one.
P.S. If StandardListItem actually fired touch events, I could probably make do with a code-populated Container, and ditch ListView entirely for cases like this. (though that's a non-ideal solution)
11-14-2012 10:40 AM