设置布局
LinearLayout.LayoutParams pa = new LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,8);
pa.setMargins(1, 2, 3, 4)