Oh.....how do I do "override this behavior"? Should I put the label in a separate FieldManager? Or, do I have to create a custom label and override some methods? What methods?
BTW, I just tried a test where I did not add the labels to vfm_left, but I added bitmaps, and no bitmaps are displayed. Here is the modified code:
Code:
public class LayoutScreen extends MainScreen{
public LayoutScreen() {
super(VerticalFieldManager.USE_ALL_WIDTH |
VerticalFieldManager.USE_ALL_HEIGHT |
VerticalFieldManager.NO_VERTICAL_SCROLL);
LabelField title = new LabelField("title and background");
LabelField score = new LabelField("score");
add(title);
add(score);
HorizontalFieldManager hfm = new HorizontalFieldManager(
HorizontalFieldManager.USE_ALL_WIDTH |
HorizontalFieldManager.USE_ALL_HEIGHT |
HorizontalFieldManager.VERTICAL_SCROLL | HorizontalFieldManager.VERTICAL_SCROLLBAR);
BitmapField image_1 = new BitmapField(Bitmap.getBitmapResource("bases_60.png"), BitmapField.VCENTER | BitmapField.HCENTER );
BitmapField image_2 = new BitmapField(Bitmap.getBitmapResource("bases_60.png"), BitmapField.VCENTER | BitmapField.HCENTER );
BitmapField image_3 = new BitmapField(Bitmap.getBitmapResource("bases_60.png"), BitmapField.VCENTER | BitmapField.HCENTER );
BitmapField image_4 = new BitmapField(Bitmap.getBitmapResource("bases_60.png"), BitmapField.VCENTER | BitmapField.HCENTER );
VerticalFieldManager vfm_left = new VerticalFieldManager();
//LabelField left_1 = new LabelField("left 1");
//LabelField left_2 = new LabelField("left 2");
//vfm_left.add(left_1);
//vfm_left.add(left_2);
vfm_left.add(image_1);
vfm_left.add(image_2);
VerticalFieldManager vfm_right = new VerticalFieldManager(
HORIZONTAL_SCROLL | HORIZONTAL_SCROLLBAR);
vfm_right.add(image_3);
vfm_right.add(image_4);
hfm.add(vfm_left);
hfm.add(vfm_right);
add(hfm);
} I attached a screenshot of the above code.
Now, I am really confused as to how these fieldmanagers work!
Mark