The chosen solution works, but let me add a little complement:
if you use
android:layout_weight="0.15" (the value is not important)
then android:layout_width="0dp" if the LinearLayout is Horizontal
or android:layout_height="0dp" if the LinearLayout is Vertical.