05-06-2013 05:37 AM - edited 05-06-2013 05:38 AM
I want to set different color and font for different text in Listview row
graphics.drawText("India", 10, y+6,0,width); graphics.drawText("91", 10, y+16,0,width);
Please help me.
Solved! Go to Solution.
05-06-2013 05:48 AM
05-06-2013 06:28 AM
What specifically don't you understand?
to set the color and
to set the font
To find out the height of a Font us ehte
If the font is the one being used by the Graphics Object at the time, then you can use
Hope ths helps.
05-06-2013 07:09 AM
You can do this using the code provided above, assuming you have the Fonts defined.
It is relatively easy to create a Font with a different size, look at the derive method of the Font API.
So just create the Font with the size you want, then use the various Graphics methods to set the Font, then drawText to paint the text.
I think that is everything you need. Give it a go.
05-14-2013 07:16 AM
05-14-2013 07:40 AM
Please solve my problem.
I would not know how, as i have no clue what your problem is, other than a "it does not work".