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
Contributor
Posts: 16
Registered: ‎03-22-2013
My Device: 8520,9900,9930,9330,9790,9780
My Carrier: BlackBerry

Set different colors to fields dynamically

Hello

 

I have one menu bar in my app . I want to set each menu(i.e each field) a color.

I want to select a color from an array of colors according to index of menu position and repeat the color sequence again.

I want to set these colors dynamically because the menus(i.e fields) are getting added dynamically .

 

Any help would be appreciated...Its urgent....

Thank you.

Developer
Posts: 16,984
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Set different colors to fields dynamically

and what is your issue with that? sounds like an idea that could go to implementation directly.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 16
Registered: ‎03-22-2013
My Device: 8520,9900,9930,9330,9790,9780
My Carrier: BlackBerry

Re: Set different colors to fields dynamically

I am getting same color which is last in the array set to all fields.

Developer
Posts: 16,984
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Set different colors to fields dynamically

and how do you do that?
creating and maintaining an index field should be quite basic.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter