デザインで小さいボタンを使用していますが、小さいボタンの ChoiceField が必要です。ChoiceField で期待どおりにボタンの手法が機能しません。サイズを変更することはできますが、ボタンが正しくレンダリングされません。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);
}
};