2
我在我的设计中使用了较小的按钮,我想要一个带有较小按钮的 ChoiceField。按钮技术不像我期望的ChoiceField那样工作。我能够改变大小,但按钮呈现不合格。如何更改ChoiceField中按钮的大小?BlackBerry ChoiceField按钮尺寸
ChoiceField choiceMode =
new ChoiceField(
searchModel.getPickerLabel(SearchOptions.PICKER_MODE),modes.length,0) {
public Object getChoice(int index) throws IllegalArgumentException {
return modes[index];
}
public int getPreferredHeight() {
return 40;
}
protected void layout(int width, int height) {
super.layout(width, 40);
setExtent(width, 40);
}
};