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