There is such a thing as LayoutParams , you can get them from any view, for example, if it is in LinearLayout
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) view.getLayoutParams(); And you can change the parameters directly.
lp.height = 100; What for? Did Google really forget about encapsulation? Or is there a meaningful application? Which one