mirror of
https://github.com/yuliskov/SmartTube.git
synced 2025-08-06 20:10:13 +08:00
chat: message spacing
This commit is contained in:
@ -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) {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user