问题
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