我需要将我的应用程序从iPhone移植到黑莓手机,但我是新手。blackberry layout
在我的应用程序中,我有一些标签下的按钮。看来我不能通过坐标设置任何视图。我应该使用现场经理(FM)保证。所以,在这种情况下,我需要有按钮垂直FM和它的标签,用于按钮一些水平FM,以及按钮的forizontal外长 垂直FM(PictureBackgroundButtonField - 从customButtonsDemo类)
VerticalFieldManager vfm = new VerticalFieldManager();
HorizontalFieldManager hfm1 = new HorizontalFieldManager();
HorizontalFieldManager hfm2 = new HorizontalFieldManager();
HorizontalFieldManager hfm3 = new HorizontalFieldManager();
VerticalFieldManager sho = new VerticalFieldManager();
shopping = new PictureBackgroundButtonField("HomePage/Home Shoping.png", Field.FOCUSABLE);
shopping.setChangeListener(this);
sho.add(shopping);
sho.add(new RichTextField("Shopping",Field.NON_FOCUSABLE));
hfm1.add(sho);
VerticalFieldManager din = new VerticalFieldManager();
dining = new PictureBackgroundButtonField("HomePage/Home Dinning.png", Field.FOCUSABLE);
dining.setChangeListener(this);
din.add(dining);
din.add(new RichTextField("Dining",Field.NON_FOCUSABLE));
hfm1.add(din);
VerticalFieldManager ent = new VerticalFieldManager();
entertainment = new PictureBackgroundButtonField("HomePage/Home Entertainment.png", Field.FOCUSABLE);
entertainment.setChangeListener(this);
ent.add(entertainment);
ent.add(new RichTextField("Entertainment",Field.NON_FOCUSABLE));
hfm1.add(ent);
VerticalFieldManager map = new VerticalFieldManager();
maps = new PictureBackgroundButtonField("HomePage/Home Maps.png", Field.FOCUSABLE);
maps.setChangeListener(this);
map.add(maps);
map.add(new RichTextField("Maps",Field.NON_FOCUSABLE));
hfm2.add(map);
VerticalFieldManager pro = new VerticalFieldManager();
promotions = new PictureBackgroundButtonField("HomePage/Home Promotions.png", Field.FOCUSABLE);
promotions.setChangeListener(this);
pro.add(promotions);
pro.add(new RichTextField("Promotions",Field.NON_FOCUSABLE));
hfm2.add(pro);
VerticalFieldManager par = new VerticalFieldManager();
parking = new PictureBackgroundButtonField("HomePage/Home Parking.png", Field.FOCUSABLE);
parking.setChangeListener(this);
par.add(parking);
par.add(new RichTextField("Parking",Field.NON_FOCUSABLE));
hfm2.add(par);
VerticalFieldManager wha = new VerticalFieldManager();
whatson = new PictureBackgroundButtonField("HomePage/Home WhatsOn.png", Field.FOCUSABLE);
whatson.setChangeListener(this);
wha.add(whatson);
wha.add(new RichTextField("What's On",Field.NON_FOCUSABLE));
hfm3.add(wha);
VerticalFieldManager moe = new VerticalFieldManager();
moeinfo = new PictureBackgroundButtonField("HomePage/Home MOEinfo.png", Field.FOCUSABLE);
moeinfo.setChangeListener(this);
moe.add(moeinfo);
moe.add(new RichTextField("MOE Info",Field.NON_FOCUSABLE));
hfm3.add(moe);
VerticalFieldManager fac = new VerticalFieldManager();
facebook = new PictureBackgroundButtonField("HomePage/Home Facebook.png", Field.FOCUSABLE);
facebook.setChangeListener(this);
fac.add(facebook);
fac.add(new RichTextField("Facebook",Field.NON_FOCUSABLE));
hfm3.add(fac);
vfm.add(hfm1);
vfm.add(hfm2);
vfm.add(hfm3);
add(vfm);
但只有我在每个hfm *中显示的第一个按钮。 athers在哪里?
1 snap = 1000 words,所以您应该发布iOS应用快照。 –