Alan Lai
Alan Lai

Reputation: 1306

How to set different row height in listfield?

Closed. Please refer to here. Thanks

Upvotes: 1

Views: 319

Answers (1)

Eugen Martynov
Eugen Martynov

Reputation: 20130

There is undocumented method setRowHeight(int row, int height). But no one guarantees that it will be there with next OS update. More details here.

Modify you TableRowManager like this:

private class TableRowManager extends Manager {
    private int row;

    public TableRowManager(int row) {
        super(0);
        setRow(row);
    }

    public void setRow(int row) {
        this.row = row;
    }

    ...
    ...

    public int getPreferredHeight() {
        return getRowHeight(row);
    }
}

Upvotes: 1

Related Questions