How do I change the position of a view in a Linear Layout.?

后端 未结 1 1476
挽巷
挽巷 2021-01-19 03:18

So I have a Linear Layout already populated with children. Is there a way to change the position at which one of the children is located?

I\'m trying to swap to vie

相关标签:
1条回答
  • 2021-01-19 03:29

    You can use ViewGroup.removeView(View) and ViewGroup.addView(View child, int index, ViewGroup.LayoutParams params) for this.

    0 讨论(0)
提交回复
热议问题