net*_*ein 22
您可以通过以下方式以编程方式添加
LinearLayout layout = (LinearLayout) findViewById(R.id.layout);
layout.addView(newView, index);
Run Code Online (Sandbox Code Playgroud)
您只需添加始终索引= 0
这是你问题的答案吗?
| 归档时间: |
|
| 查看次数: |
21563 次 |
| 最近记录: |