set View Scale - Android User Interface

Android examples for User Interface:View Scale

Description

set View Scale

Demo Code


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

public class Main {
    public static void setScale(View v, float scale) {
        v.setScaleX(scale);/* w  w  w . j  a v a2s .  c o  m*/
        v.setScaleY(scale);
    }
}

Related Tutorials