how to set height of a view in code in android code example Example: set view size android someView.setLayoutParams(new LayoutParams(width, height));