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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
New Contributor
nhuang
Posts: 8
Registered: ‎09-27-2012
My Carrier: Roger
Accepted Solution

How to change the font color of StandardListItem?

As a black ground, the text on the StandardListItem become very hard to read.

Does anyone know how to change the font color of StandardListItem.

 

Thank you.

Please use plain text.
Developer
dkonigs
Posts: 205
Registered: ‎07-25-2008

Re: How to change the font color of StandardListItem?

Frankly, I'm getting the feeling that StandardListItem exists only for the purpose of simplifying sample apps.  Its basically unconfigurable, and they don't appear to have added anything to it with each Cascades API update.

 

What I do wish RIM would do, however, is publish the source code to a custom UI component that behaves exactly like StandardListItem.  With such a sample, we could extend it however we want, yet still retain all of its intended behavior.  (such as highlight-on-touch, etc.)

Please use plain text.
Developer
kylefowler
Posts: 479
Registered: ‎05-17-2009
My Carrier: ATT

Re: How to change the font color of StandardListItem?

you can just format your text by wrapping it in html tags <html><span style="font-color: #CCCCCC;">Your text here</span></html>

Like all of my posts
Please use plain text.
New Contributor
nhuang
Posts: 8
Registered: ‎09-27-2012
My Carrier: Roger

Re: How to change the font color of StandardListItem?

[ Edited ]

I tested your solution, but it cannot work. Do you have example codes can share? Very appreciate!

Please use plain text.
Developer
kylefowler
Posts: 479
Registered: ‎05-17-2009
My Carrier: ATT

Re: How to change the font color of StandardListItem?

Theres no code really, you just need the html formatted text, except my color statement in the text had an error, its just color: and not font-color:

 

<html><span style="color: #CCCCCC;">Your text here</span></html>

Like all of my posts
Please use plain text.
New Developer
setiawand
Posts: 38
Registered: ‎07-12-2012
My Carrier: Telkomsel

Re: How to change the font color of StandardListItem?

great, it worked :smileyhappy:

Please use plain text.