You Cant do like this!
Try With RecyclerView
with custom LinearLayout
and Adapter!
Take a ArrayList
for indexing LinearLayout
if you need new LinearLayout
just programmatically add a value in your ArrayList
and bang there will be a new LinearLayout
in your RecyclerView
and thats how you can add as many as you want !
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…