get View Translation Y - Android User Interface

Android examples for User Interface:View Translate

Description

get View Translation Y

Demo Code


//package com.java2s;
import android.view.View;

public class Main {
    public static float getTranslationY(View mHeader) {
        if (mHeader != null) {
            return mHeader.getTranslationY();
        }//w w w  . j  a v a 2 s .  co m
        return 0;
    }
}

Related Tutorials