Android: Setting the Weight parameter programmatically does the opposite of what i want
When we use the weight width should be Zero
try with width 0 for with children inside the container.............
LinearLayout.LayoutParams p1 = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.WRAP_CONTENT);
LinearLayout.LayoutParams p2 = new LinearLayout.LayoutParams(0,LinearLayout.LayoutParams.WRAP_CONTENT);