2011-04-20 52 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

這是回答你的問題總是補充:

相關問題