LinearLayout linearLayout = new LinearLayout(context);
LinearLayout.LayoutParams linearLayoutParas = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
linearLayout.setLayoutParams(linearLayoutParas);