Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.ViewGroup;
import android.widget.ImageView;

public class Main {
    static public void setImageViewSizeMax(ImageView imageView, int width, int height) {
        ViewGroup.LayoutParams params = imageView.getLayoutParams();
        params.height = height;
        params.width = width;
        imageView.setLayoutParams(params);
        imageView.requestLayout();
    }
}