我有一个标题栏,就在它下面我有一个标签字段,我遇到了一个问题,当我向下滚动标签字段“timezoneTitle”时不可见。它只有在我向上滚动时才可见。我想保留它即使用户上下滚动也已修复,如何处理?
LabelField title= new LabelField("welcome", LabelField.FIELD_RIGHT);
hfm.add(title);
// title for timezone
LabelField timezoneTitle = new LabelField("", LabelField.ELLIPSIS
| LabelField.USE_ALL_WIDTH | LabelField.FIELD_HCENTER) {
public void paint(Graphics graphics) {
graphics.setColor(Color.WHITE);
graphics.setBackgroundColor(Color.BLUE);
graphics.clear();
super.paint(graphics);
}
};
setTitle(vm);
add(timezoneTitle );