I have a constraintLayout with three views (ImageView, TextView, TextView) like this :
I want the green TextView
to be wrap_content
and have also a maximum width, I don't have the exact value of the maximum with but my TextView
should respect the minimum margin of 16dp
. otherwise it will be multilines.
Can you please help me out with this?
Regards
From version 1.1.0 of ConstraintLayout. This issue is resolved by using
app:layout_constrainedWidth=”true”
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With