开发者

Draw background for each cell in ObjectListField

开发者 https://www.devze.com 2022-12-29 23:12 出处:网络
I am creating a blackberry apllication which pre-dominantly uses ObjectListFields..All i need now is to draw an image as a background for each cell. I know this is quiet possible but i am not getting

I am creating a blackberry apllication which pre-dominantly uses ObjectListFields..All i need now is to draw an image as a background for each cell. I know this is quiet possible but i am not getting hold of the procedure. if i draw bitmap in drawlistrow() function the bluehighlight gets into the background and the cell highlight becomes very hard to read......can anybody help me with a开发者_StackOverflow中文版 code snippet to get through this problem ....thanks...


As far as i know ObjectListFields focus fills the background of the element blue and alters the foreground color (text) to white.
If you really need to draw an image on the background, you should at least change the foreground color to a high contrast or at make the background image transparent.

Check the style of the graphics in drawListRow with graphics.isDrawingStyleSet(Graphics.DRAWSTYLE_FOCUS)and set different colors for them.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号