set View Translation Y - Android User Interface

Android examples for User Interface:View Translate

Description

set View Translation Y

Demo Code


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

public class Main {
    public static void setTranslationY(View view, float fromTranslationY) {
        view.setTranslationY(fromTranslationY);
    }//from  w  w w  .j ava2s.  c om
}

Related Tutorials