working on BB 9000
hey in my screen there is a label field ,below it there is a bitmap field and below that there is a list field
when i scroll down all repainting is fine but when i scroll up from list field to Bitmap field
then my image does not gets repainted till i reach at the top most label field.
i am unable to figure out why it happens
the label field is set to focussable for some reasons...
making bitmap field as focussable does not also solves the problem
code :
LabelField lbl = new LabelField("Hello",Field.focussable)
detail_img = Bitmap.getBitmapResource("container.png");
detail_img_field = new BitmapField(detail_img);
reviewlist = new Review_List(my_vector); //Review_List is a class that fills value in list field
reviewlistManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |Manager.VERTICAL_SCROLLBAR)
{
protected void paint(net.rim.device.api.ui.Graphics graphics)
{
super.paint( graphics );
}
protected boolean keyDown( int keycode, int status )
{
my_Screen.this.invalidate();
return super.keyDown( keycode, status );
}
protected boolean keyUp(int keycode, int time)
{
my_Screen.this.invalidate();
return super.keyUp(keycode, time);
}
protected boolean navigationMovement( int dx, int dy, int status, int time )
{
my_Screen.this.invalidate();
return super.navigationMovement( dx, dy, status, time );
}
protected int moveFocus(int amount, int status, int time)
{
my_Screen.this.invalidate();
return super.moveFocus(amount, status, time);
}
protected void onFocus(int direction)
{
my_Screen.this.invalidate();
super.onFocus(direction);
}
protected void onUnfocus()
{
my_Screen.this.invalidate();
super.onUnfocus();
}
};
reviewlistManager.add(reviewlist);
backgroundMannager.add(reviewlistManager);
add(backgroundMannager);