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

Java Development

Reply
New Developer
Posts: 3
Registered: ‎03-28-2009
My Device: Not Specified

App World type of gradient screen background?

Hello,

 

I am trying to follow App World-type gradient background (albeit with different colors): dark top corners, lighter bottom corners, and even lighter center point on the bottom border.

 

During development, we use 4.2 SDK.

 

We are trying to achieve that with drawShadedFilledPath method.

 

I've tried several variations of invoking the drawShadedFilledPath with a single path (offsets is null), and as multiple paths, and there are two problems:

1. The specifying bottom center point has no effect (its color does not participate in the gradient fill)

2. Giving up on the center point, when close colors are used in the top and bottom, the gradient is very uneven, with multiple horizontal strips. 

 

Am I missing something?

 

I am ready to give up and create pngs of the gradient for all screen resolutions in Photoshop.

 

I would greatly appreciate any clues and tips.

 

Best regards,

Sergey

Contributor
Posts: 18
Registered: ‎03-01-2010
My Device: None
My Carrier: NOne

Re: App World type of gradient screen background?

I had this problem too - the gradients looks very poor on the simulator. I haven't been able to test it on a phone yet.