set View Translation X - Android User Interface

Android examples for User Interface:View Translate

Description

set View Translation X

Demo Code


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

public class Main {
    public static void setTranslationX(View view, float fromTranslationX) {
        view.setTranslationX(fromTranslationX);
    }//from w  w  w  .  j av  a 2  s .  c o  m
}

Related Tutorials