Un código sencillo y antes de que se me vaya a perder, les comparto la manera en la que pueden redimensionar un “LinearLayout”:
final LinearLayout linearLayout = (LinearLayout) findViewById(R.id.sign_in_register); linearLayout.post(new Runnable() { public void run() { int layoutHeight = new Double(linearLayout.getHeight() * 0.7).intValue(); android.widget.FrameLayout.LayoutParams linearLayoutParams = (android.widget.FrameLayout.LayoutParams)linearLayout.getLayoutParams(); linearLayoutParams.height = layoutHeight; linearLayout.setLayoutParams(linearLayoutParams); } });