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
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Moving TitleBar

Hi, In the application I have a TitleBar, below that I have a List. Question is, how do I make the TitleBar scrolls up as I scroll the list (As if both are connected).

 

Cheerio

:smileyhappy:

 

www.jackdevora.com
Please use plain text.
Developer
ekke
Posts: 1,428
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Moving TitleBar

in this case you should think about different scenarios:

 

  • as soon as user scrolls: hide the titlebar
  • or add a leadingVisual to your list. but the leadingVisual is only visible if user drags down from beginning of list
  • or use a special ListItem as first ListItem and design it like a titlebar
-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Re: Moving TitleBar

Thanks for the reply, great workaround there!!
But I actually need the "pull to refresh" function when I drag down the list.
So I think solution 2, and 3 doesn't work for me.

Solution 1 would work, however it isnt quite much how I would want it. If theres no other workaround, I guess I would just use solution 1 then..

Thank you!!
www.jackdevora.com
Please use plain text.