public int compare(LayoutInfo i1, LayoutInfo i2) { LayoutBox box1 = i1.getExactLayoutBox(); LayoutBox box2 = i2.getExactLayoutBox(); return (box1.size() < box2.size() ? -1 : (box1.size() == box2.size() ? 0 : 1)); }
/** * to check if the two layouts' exact box overlapping * * @see binevi.View.LayoutInfo#overlapLayoutBox(LayoutBox) */ public boolean overlapLayoutBox(LayoutInfo i) { LayoutBox b2 = i.getExactLayoutBox(); return overlapLayoutBox(b2); }