Code example for View

Methods: getTop

0
    public float getY() { 
        View view = mView.get();
        if (view == null) {
            return 0; 
        } 
        return view.getTop() + mTranslationY;
    } 
    public void setY(float y) {
        View view = mView.get();
        if (view != null) {
            setTranslationY(y - view.getTop());
        } 
    } 
 
    private void prepareForUpdate() { 
        View view = mView.get();
        if (view != null) {
            computeRect(mBefore, view);
        } 
    } 
    private void invalidateAfterUpdate() {