Layout orientation in code

I have this code in my application: LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); and I just want to set the orientation of the LinearLayout to