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
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
Accepted Solution

Advice needed for Scroll View and dynamically resizing containers

I've ran a few of the cascades samples, and put together a few cascades / C++ demo apps.

 

Now I'd like to have a setup like this:

Page
 Page Container
  Scroll View
   Container #1 with a Label
    (Container #1 has another label, but not shown)
   Container #2 with some other Control
    (Container #2 has another Control hidden)
   ...And so on

The goal is similar to a list view row that expands out to reveal more content when pressed, but I don't want to use lists, I only have controls and each is unique.

 

Are there any code samples similar to this?

 

If not, which Scroll View and Container API's should I look into to make this possible?

 

Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: Advice needed for Scroll View and dynamically resizing containers

You can just use the visible property on any qml element if you want to hide and show elements. Handle the tap on container #1 and then show the extra content. Put all of that inside a scrollview.
Like all of my posts
Please use plain text.
Developer
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700

Re: Advice needed for Scroll View and dynamically resizing containers

Sweet, much easier than I thought it would be.  Thanks!

Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: Advice needed for Scroll View and dynamically resizing containers

If that helped make sure to mark it as a solution :smileyhappy:
Like all of my posts
Please use plain text.