Skip to content

Can you please elaborate some code regarding gravity? #1

@SoniKarsh

Description

@SoniKarsh
final int gravity = getGravity();

		if (Gravity.isVertical(gravity)
				&& (gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.BOTTOM) {

			setGravity((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) | Gravity.TOP);
			topDown = false;
		}
		else {

			topDown = true;
		}

If you could just explain to me the use of Gravity.isVertical()? as I couldn't find anything around it.

In google doc, i found that Gravity.isVertical is used to found the gravity pull is vertical or not so if you could just explain mentoined code that would be very helpful thank you...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions