The layout width should be 0dp if you want it to be set to whatever the constraint layout wants to calculate.