Code example for View

Methods: getTranslationY

0
        static void setTranslationX(View view, float translationX) {
            view.setTranslationX(translationX);
        } 
 
        static float getTranslationY(View view) {
            return view.getTranslationY();
        } 
 
        static void setTranslationY(View view, float translationY) {
            view.setTranslationY(translationY);
        } 
 
        static float getX(View view) {
            return view.getX();
        } 
 
        static void setX(View view, float x) {
            view.setX(x);
        } 
 
Connect your IDE to all the code out there  Get Codota for Java