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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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

Developer
Posts: 292
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
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
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
Highlighted
New Contributor
Posts: 8
Registered: ‎09-27-2012
My Device: BB 10 Dev Alpha
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!

Developer
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
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
New Developer
Posts: 41
Registered: ‎07-12-2012
My Device: Orlando, Dev Alpha
My Carrier: Telkomsel

Re: How to change the font color of StandardListItem?

great, it worked Smiley Happy