Java tutorial
//package com.java2s; //License from project: Apache License import android.view.View; import android.view.ViewGroup; public class Main { public static void setViewsHeight(View view, int height) { ViewGroup.LayoutParams params = view.getLayoutParams(); params.height = height; view.setLayoutParams(params); } }