我有一個標題欄,正下方,我有一個標籤字段,我面臨一個問題,如當我向下滾動標籤字段「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兩次我已經有一個標題欄。 –