1// Gets linearlayout
2LinearLayout layout = findViewById(R.id.numberPadLayout);
3// Gets the layout params that will allow you to resize the layout
4LayoutParams params = layout.getLayoutParams();
5// Changes the height and width to the specified *pixels*
6params.height = 100;
7params.width = 100;
8layout.setLayoutParams(params);
9