How to set different row height in listfield?

南笙酒味 提交于 2020-01-05 11:03:46

问题


Closed. Please refer to here. Thanks


回答1:


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);
    }
}


来源:https://stackoverflow.com/questions/11430576/how-to-set-different-row-height-in-listfield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!