布局错误:
当我在白色气球内写字时,气球的大小开始增加,所以没关系。但覆盖了John Doe的名字,以及蓝色气球内的文字。
但是,我已经陷入困境,我无法做出响应。
我为测试创建了太多布局而没有。我创建了一些约束 在文字约翰的底部连接白色气球,但我不能。它不起作用。
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:id="@+id/chatlayout"
android:layout_height="wrap_content"
android:paddingTop="8dp">
<android.support.constraint.ConstraintLayout
android:id="@+id/chatlayoutsoon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="200dp"
android:layout_marginTop="2dp"
android:background="@drawable/chat_mensagem_enviada_bg"
android:paddingBottom="10dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
app:layout_constraintBottom_toBottomOf="@+id/chatlayout"
app:layout_constraintHorizontal_bias="0.97"
app:layout_constraintLeft_toLeftOf="@+id/chatlayout"
app:layout_constraintRight_toRightOf="@+id/chatlayout"
app:layout_constraintTop_toTopOf="@+id/chatlayout"
app:layout_constraintVertical_bias="1.0">
<android.support.constraint.ConstraintLayout
android:id="@+id/chatlayoutinterno"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="0dp"
android:layout_marginTop="2dp"
android:background="@drawable/chat_mensagem_recebida_bg"
android:paddingBottom="1dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
app:layout_constraintHorizontal_bias="0.97"
app:layout_constraintLeft_toLeftOf="@+id/chatlayoutsoon"
app:layout_constraintRight_toRightOf="@+id/chatlayoutsoon"
app:layout_constraintTop_toBottomOf="@+id/chatlayoutsoon"
app:layout_constraintTop_toTopOf="@+id/chatlayoutsoon"
app:layout_constraintVertical_bias="1.0">
<TextView
android:id="@+id/text_view_chat_message2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="30dp"
android:layout_marginRight="20dp"
android:layout_marginTop="11dp"
android:maxWidth="240dp"
android:padding="1dp"
android:text="adjasdiasdjioasdjoasjdoiajdodsadasdsadadadadsadadasdsadaadadasdadasdasdadjas"
android:textColor="@color/black"
android:textSize="17sp"
app:layout_constraintTop_toBottomOf="@+id/mine_nome_data" />
</android.support.constraint.ConstraintLayout>
<TextView
android:id="@+id/mine_nome_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="16dp"
android:layout_marginTop="61dp"
android:text="John Doe"
android:textColor="@color/black"
android:textSize="13sp"
android:textStyle="bold"
app:layout_constraintRight_toRightOf="@+id/chatlayoutinterno"
app:layout_constraintTop_toTopOf="@+id/chatlayoutinterno" />
<ImageView
android:id="@+id/read"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginRight="5dp"
android:layout_marginTop="82dp"
android:visibility="visible"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/sent" />
<TextView
android:id="@+id/text_view_chat_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="30dp"
android:layout_marginRight="-123dp"
android:layout_marginTop="105dp"
android:maxWidth="240dp"
android:padding="1dp"
android:text="adjasdiasdjioasdjoasjdoiajdodsadasdsadadadadsadadasdsadaadadasdadasdasd adjasdiasdjioasdjoasjdoiajdodsadasdsadadadadsadadasdsadaadadasdadasdasd adjasdiasdjioasdjoasjdoiajdodsadasdsadadadadsadadasdsadaadadasdadasdasd"
android:textColor="@color/black"
android:textSize="17sp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>