title: Constrain layout custom view not updating size after layoutParams change
body: <p>I've seen similar questions but no answer has worked for me.</p>
  <p>I'm trying to change my custom button width programmatically, but only the internal constrains change, not the container size inside my activity.</p>
  <pre><code>    private fun setSizeButton() {
          binding.container.layoutParams.width = context.dpToPx(NEW_SIZE)
          requestLayout()
          parent.requestLayout()
      }
  </code></pre>
  <p>For extra context, the container is just a constrainLayout with a TextView inside. What I'm I missing for this custom view to adapt to the new width?</p>
  <p>Update: I change the custom view from a ConstrainLayout to LinearLayout and it worked, so what's preventing the ConstrainLayout from adapting to the new layout params?</p>