question: 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 ) ; }
target:  Simple gravity to string - only supports LEFT and RIGHT for debugging output.