如何设置listfield不同行的高度? [英] How to set different row height in listfield?

查看:111
本文介绍了如何设置listfield不同行的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关闭。请参考<一个href=\"http://stackoverflow.com/questions/11573850/how-to-set-different-row-height-in-listfield-with-implementing-listfieldcallback/11644420#11644420\">here.谢谢

推荐答案

有是未记录的方法 setRowHeight(INT行,诠释高)。但是,没有人可以保证它会在那里与下一代操作系统更新。更多细节这里

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.

修改你TableRowManager是这样的:

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

这篇关于如何设置listfield不同行的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆