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
Posts: 63
Registered: ‎11-12-2012
My Device: BB10 DevAlpha
My Carrier: Airtel

Scrolling page background relative to the page content.

I have a label with multiple paragraphs of text which can be scrolled on a page. The number of lines is not fixed as the text is pulled from a web server. I want a background image behind the label which scrolls along with the text. How do I implement this ?

Click Accept as Solution if this post that have solved your issue(s)!
Like if you found this post useful..
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: Scrolling page background relative to the page content.

You have two options I think. The first is to use the DockLayout and position both the ImageView and the scrollable text on HorizontalAlignment.Center and VerticalAlignment.Center.

 

The second is to set the background of the Container you're placing the text in. Might be that you need to nineslice your image.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 63
Registered: ‎11-12-2012
My Device: BB10 DevAlpha
My Carrier: Airtel

Re: Scrolling page background relative to the page content.

I dont require the background to extend with the content size. I want the background image to move with the content, something similar to this:

How-To-Make-Notes-With-Siri-In-iOS-6.jpg

Similar to how the note background moves with the content.

Click Accept as Solution if this post that have solved your issue(s)!
Like if you found this post useful..