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