У меня есть XML-файл с ImageView и TextView.Каждый раз, когда TextView заполняется, текст исчезает с экрана.Я посмотрел на других людей, у которых была такая же проблема, и общее решение, похоже, состоит в том, чтобы установить ширину Textview равной 0dp.Это не сработало для меня.Хотите знать, если кто-нибудь знает, почему?
Вот мой XML-файл constraintLayout:
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView
android:id="@+id/weather_icon"
app:layout_constraintRight_toLeftOf="@id/weather_data"
android:layout_width="50dp"
android:layout_height="match_parent" />
<TextView
android:id="@+id/weather_data"
android:text="EXAMPLE"
android:textStyle="bold"
android:paddingRight="16dp"
style="@style/TextAppearance.AppCompat.Large"
app:layout_constraintLeft_toRightOf="@id/weather_icon"
app:layout_constraintEnd_toEndOf="parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
Вот как это выглядит, текст явно обрезается:
![enter image description here](https://i.stack.imgur.com/anJ70.png)