I have tried setting the layout_width for Linear layout to "fill_parent" but that doesn't help either. Those button inside the scrollview is still having unequal width.
Look like there is no choice but to hardcoded the width then. Thanks, it work after i hardcoded it and remove the weight attribute.
it means both of your layouts are interdependent on each other.
just remove the weight attribute. either hardcode the width of the buttons or set it to wrap-content.