Searched refs:horizontalOffset (Results 1 – 2 of 2) sorted by relevance
562 int horizontalOffset = (parentWidth - topView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout() local565 assertEquals(horizontalOffset, topView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout()566 assertEquals(horizontalOffset + topView.getWidth(), topView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()568 horizontalOffset = (parentWidth - centerView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout()571 assertEquals(horizontalOffset, centerView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout()572 assertEquals(horizontalOffset + centerView.getWidth(), centerView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()574 horizontalOffset = (parentWidth - bottomView.getWidth()) / 2; in testHorizontalCenterGravityOnVerticalLayout()577 assertEquals(horizontalOffset, bottomView.getLeft()); in testHorizontalCenterGravityOnVerticalLayout()578 assertEquals(horizontalOffset + bottomView.getWidth(), bottomView.getRight()); in testHorizontalCenterGravityOnVerticalLayout()
242 private void verifyAnchoring(int horizontalOffset, int verticalOffset, int gravity) { in verifyAnchoring() argument256 int expectedListViewOnScreenX = anchorXY[0] + listViewInWindowXY[0] + horizontalOffset; in verifyAnchoring()878 public Builder withHorizontalOffset(int horizontalOffset) { in withHorizontalOffset() argument879 mHorizontalOffset = horizontalOffset; in withHorizontalOffset()