Different results when using the LayoutInflator's inflate methods
问题 I want to know how the LayoutParams will work on LayoutInflator . And what is difference between: LinearLayout childLayout=(LinearLayout)inflater.inflate(R.layout.childitemlayout, null); //FIRST WAY LinearLayout childLayout=(LinearLayout)inflater.inflate(R.layout.childitemlayout, container,false); //SECOND WAY Because, both methods gives me different result. Actually second inflate method are gives me correct result for both child layout change, but First method will gives me different result