android How to add view at start of layout?

后端 未结 3 1635
醉酒成梦
醉酒成梦 2020-12-11 14:43

My question is simple. I have a linearlayout. It has some child views. Now I want to add a view at the start of the child. Means in normal addView(view), the view s added at

3条回答
  •  温柔的废话
    2020-12-11 15:45

    create a list of views, add your view to it and then add all views from layout to that list, remove all views from layout and add all views from your list

提交回复
热议问题