i am trying to give spacing between the views in a linearlayout programatically , i tried with
layout.setPadding(0, 5, 0, 5); but nothing worked ..also iam trying to put more space in one edittext field ..tried with this
comment.setLayoutParams(newandroid.view.ViewGroup.LayoutParams(450,100));
//comment.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
here is my code: http://pastebin.com/s46qQUNV
Try to using LayoutParams :