getWindowGravity static method
Converts SystemWindowGravity to string format
Implementation
static String getWindowGravity(SystemWindowGravity gravity) {
//if (gravity == null) gravity = SystemWindowGravity.TOP;
switch (gravity) {
case SystemWindowGravity.CENTER:
return "center";
case SystemWindowGravity.BOTTOM:
return "bottom";
case SystemWindowGravity.TRAILING:
return "trailing";
case SystemWindowGravity.LEADING:
return "leading";
case SystemWindowGravity.TOP:
default:
return "top";
}
}