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
New Contributor
nhuang
Posts: 8
Registered: ‎09-27-2012
My Device: BB 10 Dev Alpha
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.

Developer
dkonigs
Posts: 256
Registered: ‎07-25-2008
My Device: Passport

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.)

Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

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
New Contributor
nhuang
Posts: 8
Registered: ‎09-27-2012
My Device: BB 10 Dev Alpha

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!

Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

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
New Developer
setiawand
Posts: 41
Registered: ‎07-12-2012
My Device: Orlando, Dev Alpha

Re: How to change the font color of StandardListItem?

great, it worked :smileyhappy: