В то время как отправка сообщения, текст и изображение занимают одинаковое пространство с относительным макетом, в котором они находятся, как установить разный размер для текста и изображения
Я прикрепил изображение, интервал между изображением и текстом находится вразмер относительного вида
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/messages_profile_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_weight="0"
android:src="@drawable/default_image" />
<TextView
android:id="@+id/message_text"
android:layout_width="299dp"
android:layout_height="50dp"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:background="@drawable/message_text_background"
android:padding="15dp"
android:text="@string/textview"
android:textColor="@android:color/background_light"
android:textSize="14sp"
android:textStyle="bold"
android:visibility="visible" />
<ImageView
android:id="@+id/message_image_view"
android:layout_width="313dp"
android:layout_height="105dp"
android:layout_alignParentEnd="true"
android:layout_a[enter image description here][1]lignParentTop="true"
android:scaleType="centerCrop" />
</RelativeLayout>