Все, что вам нужно, это только небольшой запас и правильное ограничение
теперь в вашем descriptionTextView
сначала вам нужно установить app:layout_constrainedWidth="true"
, чтобы это не выходило за рамки макета и не устанавливало поле с правой стороны, например android:layout_marginEnd="8dp"
теперь вам нужно установить ограничение с ImageView
вот так
app:layout_constraintEnd_toStartOf="@+id/copyImageView"
теперь над строкой всегда будет препятствовать перекрытию текстового представления
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/titleTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/descriptionTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="Lorem ipsum dolor sit amet, consectetur erererereradipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toStartOf="@+id/copyImageView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/titleTextView" />
<ImageView
android:id="@+id/copyImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_content_copy_black_24dp"
android:tint="?android:textColorSecondary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.050000012" />
</androidx.constraintlayout.widget.ConstraintLayout>