layout=(LinearLayout) findViewById(R.id.llayout_txt_bg);
WindowManager wm = (WindowManager) this.getSystemService(Context.WINDOW_SERVICE);
int width = wm.getDefaultDisplay().getWidth();//屏幕宽度
int height = wm.getDefaultDisplay().getHeight();//屏幕高度
LinearLayout.LayoutParams lp=(LinearLayout.LayoutParams)layout.getLayoutParams();
if (height>800) {
lp.height=(height*9)/11;
layout.setLayoutParams(lp);
}