Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.widget.ImageView;
import android.widget.LinearLayout;

public class Main {
    public static ImageView resizeImageView(int width, int height, ImageView i) {
        //        final ImageView picture1 = (ImageView)findViewById(R.id.imageView1);
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(width, height);
        i.setLayoutParams(layoutParams);
        return i;
    }
}