InQBarna / TableFixHeaders

Android library that implements a table with fixed headers.
Apache License 2.0
818 stars 300 forks source link

is it better to do that in FamilyNexusAdapter? #96

Open MrR0990 opened 8 years ago

MrR0990 commented 8 years ago

is it better to do that in FamilyNexusAdapter ?

@Override public int getRowCount() {

        int count = 0;
        for (int i = 0; i < familys.length; i++) {
            count += familys[i].list.size();
        }
        count += familys.length;
        return count;
    }

    @Override
    public int getColumnCount() {
        return headers.length - 1;
    }