static String gravityToString(int gravity){
  if ((gravity & Gravity.LEFT) == Gravity.LEFT) {
    return "LEFT";
  }
  if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) {
    return "RIGHT";
  }
  return Integer.toHexString(gravity);
}

static String gravityToString ( int gravity ) { if ( ( gravity & Gravity . LEFT ) == Gravity . LEFT ) { return "LEFT" ; } if ( ( gravity & Gravity . RIGHT ) == Gravity . RIGHT ) { return "RIGHT" ; } return Integer . toHexString ( gravity ) ; }
simple gravity to string - only supports left and right for debugging output .
