11-30-2009, 09:35 AM
|
#1 (permalink)
|
| Knows Where the Search Button Is
Join Date: Oct 2009 Model: 8130 PIN: N/A Carrier: don't know
Posts: 15
Post Thanks: 0 Thanked 0 Times in 0 Posts
| setPositionChild() issue in VerticalFieldManager having scrolling support Please Login to Remove! Hi,
I am using a VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR) and in paint(), i have set the position of all children such that some of them are not displayed in the current view and shuffled up for e.g.
/* This is just hard coding for understanding. In my code i have applied some logic*/
paint(Graphics g){
setPositionChild(getField(0), 0, -10);
setPositionChild(getField(1), 0, 10);
setPositionChild(getField(2), 0, 30);
setPositionChild(getField(3), 0, 50);
setPositionChild(getField(4), 0, 70);
setPositionChild(getField(5), 0, 90);
setPositionChild(getField(6), 0, 110);
super.paint(g);
}
Now after shuffling the page, current view is displayed properly but when i scroll up, the upper fields are not displayed and and when i scroll down at the end some blank spaces are left. Even after setting position of children such like above, upper scroll indicator is not displayed.
Any suggestion????
Please do reply. I stuck here. |
| Offline
| |