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...