I’m trying to add a horizontal LinearLayout programmatically, making sure the second child
takes all the width it needs and the first child will take all the space left.
I don’t have a code to add, because I try many options, and nothing worked yet.
any idea?
set
android:layout_weight="0"for second child. And for first child setandroid:layout_weight="1".