Lines Matching refs:gravity

383      * @param gravity Which drawer the shadow should apply to
385 public void setDrawerShadow(Drawable shadowDrawable, @EdgeGravity int gravity) {
392 final int absGravity = GravityCompat.getAbsoluteGravity(gravity,
409 * @param gravity Which drawer the shadow should apply to
411 public void setDrawerShadow(@DrawableRes int resId, @EdgeGravity int gravity) {
412 setDrawerShadow(getResources().getDrawable(resId), gravity);
525 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
526 setDrawerLockMode(lockMode, gravity);
530 * Check the lock mode of the drawer with the given gravity.
567 * Sets the title of the drawer with the given gravity.
587 * Returns the title of the drawer with the given gravity.
720 * @return the absolute gravity of the child drawerView, resolved according
724 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
725 return GravityCompat.getAbsoluteGravity(gravity, ViewCompat.getLayoutDirection(this));
757 * @param gravity the gravity of the child to return. If specified as a
760 * @return the drawer with the specified gravity
762 View findDrawerWithGravity(int gravity) {
764 gravity, ViewCompat.getLayoutDirection(this)) & Gravity.HORIZONTAL_GRAVITY_MASK;
777 * Simple gravity to string - only supports LEFT and RIGHT for debugging output.
779 * @param gravity Absolute gravity value
782 static String gravityToString(@EdgeGravity int gravity) {
783 if ((gravity & Gravity.LEFT) == Gravity.LEFT) {
786 if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) {
789 return Integer.toHexString(gravity);
854 final int cgrav = GravityCompat.getAbsoluteGravity(lp.gravity, layoutDirection);
873 throw new IllegalStateException("Child drawer has absolute gravity " +
926 final int vgrav = lp.gravity & Gravity.VERTICAL_GRAVITY_MASK;
1122 return ((LayoutParams) child.getLayoutParams()).gravity == Gravity.NO_GRAVITY;
1126 final int gravity = ((LayoutParams) child.getLayoutParams()).gravity;
1127 final int absGravity = GravityCompat.getAbsoluteGravity(gravity,
1313 * @param gravity Gravity.LEFT to move the left drawer or Gravity.RIGHT for the right.
1316 public void openDrawer(@EdgeGravity int gravity) {
1317 final View drawerView = findDrawerWithGravity(gravity);
1319 throw new IllegalArgumentException("No drawer view found with gravity " +
1320 gravityToString(gravity));
1353 * @param gravity Gravity.LEFT to move the left drawer or Gravity.RIGHT for the right.
1356 public void closeDrawer(@EdgeGravity int gravity) {
1357 final View drawerView = findDrawerWithGravity(gravity);
1359 throw new IllegalArgumentException("No drawer view found with gravity " +
1360 gravityToString(gravity));
1385 * visible state. If there is no drawer with the given gravity this method
1417 * If there is no drawer with the given gravity this method will return false.
1539 ss.openDrawerGravity = ((LayoutParams) openDrawer.getLayoutParams()).gravity;
1631 public ViewDragCallback(int gravity) {
1632 mAbsGravity = gravity;
1645 // Only capture views where the gravity matches what we're looking for.
1789 public int gravity = Gravity.NO_GRAVITY;
1798 this.gravity = a.getInt(0, Gravity.NO_GRAVITY);
1806 public LayoutParams(int width, int height, int gravity) {
1808 this.gravity = gravity;
1813 this.gravity = source.gravity;