我在水平字段管理器中使用了四个按钮,每个按钮的宽度都是屏幕宽度的 1/4,但屏幕上仍然只显示 3 个按钮?我正在为 Eclipse 使用黑莓 9900 模拟器和黑莓插件。
HorizontalFieldManager hm_btn_family = new HorizontalFieldManager();
hm_btn_family.setMargin(10, 0, 0, 16);
add(hm_btn_family);
family = new Custom_buttonfield("Family", (Display.getWidth()/4), 40);
family.setFont(font);
hm_btn_family.add(family);
friend = new Custom_buttonfield("Friends", (Display.getWidth()/4), 40);
friend.setFont(font);
hm_btn_family.add(friend);
others = new Custom_buttonfield("Others", (Display.getWidth()/4), 40);
others.setFont(font);
hm_btn_family.add(others);
calllist = new Custom_buttonfield("Call List", (Display.getWidth()/4), 40);
calllist.setFont(font);
hm_btn_family.add(calllist);`