I have a linear layout which has 4 childs with different weights. When user click a button at first child , i want to add new child to parent linear layout with different weight ( 0dp height ) . But when i am adding new child all childs height is changing.How to add new view without change height percantage ?
------
view 1 (25%)
------
------
view 2 (25%)
------
------
view 3 (25%)
------
------
view 4 (25%)
------
after adding new layout programmatically
------
view 1 (25%)
------
------
view 2 (25%)
------
------
view 3 (25%)
------
------
view 4 (25%)
------
------
view 5 (25%)
------
total layout will be 125% and scrollable. Thanks