开发者

please tell me how i can paint the whole screen in a rimlet?

i am developing a blackberry app. i want to paint the screen. i have implemented this

VerticalFieldManager hfmBg = new VerticalFieldManager(Field.USE_ALL_HEIGHT )
            {
  开发者_StackOverflow社区              protected void paint(Graphics g)
                {

                    g.setBackgroundColor(Color.SILVER);
                    g.clear();
                    super.paint(g);
                }//end of paint method
            };//end of vertical field manager

but tell me is there any other approach to paint the whole screen?


You have the right idea - just put that paint method in your Screen (MainScreen or FullScreen) class instead of your Manager class. You may also have to add the following empty method to your Screen class to override themes that set the default colors:

protected void applyTheme() {
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜