标签: labelfield

如何在黑莓中的 labelField 中水平滚动

我想在标签字段中水平滚动。

在下图中,长文本(即电子邮件 ID)不会滚动。

我正在自定义 GridField Manager 中添加此 LabelField。这是自定义 GridField 管理器的代码。

public class CustomGridFieldManager extends Manager {
private int[] columnWidths;
private int columns;
private int allRowHeight = -1;


public CustomGridFieldManager(int columns, long style) {
    super(style);
    this.columns = columns;
}


public CustomGridFieldManager(int[] columnWidths, long style) {
    super(style);
    this.columnWidths = columnWidths;
    this.columns = columnWidths.length;

}

public CustomGridFieldManager(int[] columnWidths, int rowHeight, long style) {
    this(columnWidths, style);
    this.allRowHeight  = rowHeight;
}

protected boolean navigationMovement(int dx, int dy, int status, int time) {

    int focusIndex = getFieldWithFocusIndex();
    while(dy …
Run Code Online (Sandbox Code Playgroud)

blackberry horizontal-scrolling labelfield

5
推荐指数
1
解决办法
99
查看次数

黑莓Java:TextField*没有*插入符号?

我想要一个甚至没有显示插入符号的不可编辑的TextField(或子类).或者,我想要一个多行LabelField.这些都有可能吗?

user-interface blackberry caret textfield labelfield

1
推荐指数
1
解决办法
3768
查看次数