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
behrk2
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified
Accepted Solution

Adjusting ListView to fill available screen height

Hello,

 

Does anyone know how I can set the height of a ListView in QML to use all of the available screen height? I've tried using:

 

verticalAlignment: VerticalAlignment.Fill

 ...but that did not work.  The ListView resides in a Container that resides in a Page that resides in a NavigationPane.  I tried adding the above property to all of those elements, but it still gets cut off at three quarters of the screen height.


Thanks.

Please use plain text.
Developer
behrk2
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified

Re: Adjusting ListView to fill available screen height

I just figured it out.  I had an ActivityIndicator below the ListView that was taking up the space.  I set the ActivityIndicator visibility to false when I'm not using it, and that fixed the problem.

Please use plain text.