如何添加意见线性布局?线性、布局、意见

2023-09-06 04:01:14 作者:爷de霸气√你值得拥有

有可能陆续添加视图线性布局之一,向上的方向。

It is possible to add views to Linear Layout one after another in upward direction.

如果任何一个工作的,请帮我

if any one working on that,please help me

推荐答案

您可以以编程方式添加:

You can add it programmatically with:

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

您只需要与指数随时添加= 0

You just have to add always with index = 0

这是回答你的问题?