ConstraintLayout cuts off text in textview
For me, This worked by having the following
app:layout_constraintEnd_toEndOf="parent"
and the width as
android:layout_width="0dp"
Please add right constraint as well like
app:layout_constraintRight_toRightOf="parent"
and please set width 0dp like
android:layout_width="0dp"
Output
The best and most up-to-date answers on this topic can be found here:
View is pushed out of its constraints in ConstraintLayout
Wrap_content view inside a ConstraintLayout stretches outside the screen
They describe how to use app:layout_constrainedWidth
-Property which was introduced with ConstraintLayout 1.1.