你是通过布局文件创建的吧?
要不改成动态创建布局吧,就是创建一个linearlayout,自己通过addview的方式将new出来的控件一个一个加到这个layout里,然后LinearLayout.LayoutParams参数你可以指定,也就是说
public int bottomMargin The bottom margin in pixels of the child.
public……
[/Quote]
你是通过布局文件创建的吧?
要不改成动态创建布局吧,就是创建一个linearlayout,自己通过addview的方式将new出来的控件一个一个加到这个layout里,然后LinearLayout.LayoutParams参数你可以指定,也就是说
public int bottomMargin The bottom margin in pixels of the child.
public int leftMargin The left margin in pixels of the child.
public int rightMargin The right margin in pixels of the child.
public int topMargin The top margin in pixels of the child.
这四个margin你自己写死了,那也就知道了。