11-30-2009, 09:35 AM
Knows Where the Search Button Is
Join Date: Oct 2009
Carrier: don't know
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | setPositionChild() issue in VerticalFieldManager having scrolling support
Please Login to Remove!
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*/
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);
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.
Please do reply. I stuck here.