Fixing a bug in CellLayoutChildren getChildAt(int, int)
Change-Id: I50879c93ce5bf949242eb0174eb48e560cd657cc
This commit is contained in:
parent
e031096502
commit
f579b5041a
|
@ -66,7 +66,7 @@ public class CellLayoutChildren extends ViewGroup {
|
|||
CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
|
||||
|
||||
if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
|
||||
(lp.cellY <= y) && (y < lp.cellY + lp.cellHSpan)) {
|
||||
(lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
|
||||
return child;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue