get View Bottom - Android User Interface

Android examples for User Interface:View Property

Description

get View Bottom

Demo Code


import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.os.Build;
import android.view.View;

public class Main{
    public static int getBottom(View v) {
        if (SwipeBack.USE_TRANSLATIONS) {
            return (int) (v.getBottom() + v.getTranslationY());
        }// w w w.j  a va2  s  .c  o  m

        return v.getBottom();
    }
}

Related Tutorials