Improved chat messages recyclerview scrolling below remote composing label

This commit is contained in:
Sylvain Berfini 2022-01-07 14:49:17 +01:00
parent 5605e37121
commit c74daaa4a1

View file

@ -276,28 +276,31 @@
</LinearLayout>
<TextView
android:id="@+id/remote_composing"
android:text="@{viewModel.composingList, default=@string/chat_remote_is_composing}"
android:visibility="@{viewModel.remoteIsComposing ? View.VISIBLE : chatSendingViewModel.isReadOnly ? View.GONE : View.INVISIBLE}"
android:layout_marginLeft="5dp"
style="@style/standard_small_text_font"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/footer" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/chat_messages_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/remote_composing"
android:layout_above="@id/footer"
android:layout_below="@+id/top_bar"
android:paddingBottom="20dp"
android:clipToPadding="false"
android:cacheColorHint="@color/transparent_color"
android:choiceMode="multipleChoice"
android:divider="@android:color/transparent"
android:listSelector="@color/transparent_color"
android:transcriptMode="normal" />
<TextView
android:id="@+id/remote_composing"
style="@style/standard_small_text_font"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/footer"
android:paddingLeft="5dp"
android:background="?attr/backgroundColor"
android:text="@{viewModel.composingList, default=@string/chat_remote_is_composing}"
android:visibility="@{viewModel.remoteIsComposing ? View.VISIBLE : View.GONE}" />
<ImageView
android:src="@{viewModel.securityLevelIcon, default=@drawable/security_alert_indicator}"
android:visibility="@{viewModel.encryptedChatRoom ? View.VISIBLE : View.GONE}"