Java Code Examples for com.nineoldandroids.view.ViewHelper.getTranslationY()

The following are Jave code examples for showing how to use getTranslationY() of the com.nineoldandroids.view.ViewHelper class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ClouldReader   File: Instrument.java   View Source Code Vote up 5 votes
public float getTranslationY(View view){
    if(view == null){
        return 0;
    }
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
        return view.getTranslationY();
    }else{
        return ViewHelper.getTranslationY(view);
    }
}
 
Example 2
Project: GitHub   File: Instrument.java   View Source Code Vote up 5 votes
public float getTranslationY(View view){
    if(view == null){
        return 0;
    }
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
        return view.getTranslationY();
    }else{
        return ViewHelper.getTranslationY(view);
    }
}