我有一个标题栏,正下方,我有一个标签字段,我面临一个问题,如当我向下滚动标签字段“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);
使用settitle到timezoneTitle – Signare
我们不能有setTittle两次我已经有一个标题栏。 –