Я хочу создать макет, как макет обмена сообщениями WhatsApp.Отредактируйте текст и отправьте значок внизу и список над ними.Edittext может многострочным, и я хочу, чтобы значок всегда внизу .Но когда я делаю ImageView alignparentbottom = true bottomRl покрывает весь экран .
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
// recyclerview here , above the bottom view
<RelativeLayout
android:id="@+id/bottomRl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:src="@drawable/ic_test" />
</RelativeLayout>
</RelativeLayout>
Это ошибка андроида или я что-то не так делаю?
Спасибо за ответы
Решение ...
<ImageView
android:id="@+id/imageViewSend"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_alignBottom="@+id/editTextEntry"
android:layout_alignParentEnd="true"
android:src="@drawable/ic_send" />