QuiltViewLibrary
QuiltViewLibrary copied to clipboard
setRowCount(int) and setColumnCount(int) shouldn't receive -1 as undefined value
setupVertical()
and setupHorizontal()
methods on QuiltViewBase
class, call setColumnCount(int)
and setRowCount(int)
passing -1 as undefined value, this makes GridLayout throw an IllegalArgumentException
. Instead, these methods should pass UNDEFINED
constant as undefined value.
solve it by remove //this.setColumnCount(-1); and //this.setColumnCount(-1); in vertical too
@medozeus you mean setRowCount in horizontal i think it's better to set it undefined: this.setRowCount(UNDEFINED); // in horizontal this.setColumnCount(UNDEFINED); // in vertical