2011-04-20 50 views

回答

15

您可以用编程方式添加呢?

+2

感谢您的回放。 – kiran 2011-04-21 05:10:01

2

如果你想视图向上的方向增加的LinearLayout(即从下到上)在LinearLayout中的XML使用

android:gravity="bottom" 

财产然后在布局中添加视图。 希望这会解决你的问题。

0

如果你想保持你的意见最高,relativelayout是另一种选择。

LinearLayout layout = (LinearLayout) findViewById(R.id.layout); 
layout.addView(newView, index); 

你只需要具有指数= 0

这是回答你的问题总是补充:

相关问题