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