chat: message spacing

This commit is contained in:
Yuriy Liskov
2022-07-17 00:49:13 +03:00
parent 2f7972a992
commit 58f5b5f5e4
3 changed files with 10 additions and 4 deletions

View File

@ -705,7 +705,7 @@ public class MessagesListAdapter<MESSAGE extends IMessage>
private boolean checkMessage(MESSAGE message) {
return message != null && message.getId() != null && message.getUser() != null && message.getUser().getId() != null
&& message.getText() != null && !message.getText().isEmpty();
&& message.getText() != null && !message.getText().trim().isEmpty();
}
void setLayoutManager(RecyclerView.LayoutManager layoutManager) {

View File

@ -1,12 +1,14 @@
<!-- MODIFIED: Android 9 message focused bug fix (RelativeLayout focusable="false") -->
<!-- MODIFIED -->
<!-- Android 9 message focused bug fix: RelativeLayout focusable="false" -->
<!-- Decrease space between messages: RelativeLayout android:layout_marginBottom=8dp>3dp android:layout_marginTop=8dp>3dp -->
<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:layout_marginBottom="8dp"
android:layout_marginBottom="3dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:layout_marginTop="3dp"
android:focusable="false">
<com.stfalcon.chatkit.utils.ShapeImageView