Weird workaround for multi line chat bubble displayed with wrong width

This commit is contained in:
Sylvain Berfini 2021-02-01 15:11:48 +01:00
parent cacf1f4472
commit 5ef5564b6d

View file

@ -29,6 +29,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Weirdly enough this "useless" RelativeLayout prevents the measuring issue
in child LinearLayout (which size depends on the MultiLineWrapContentWidthTextView) -->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<CheckBox
android:id="@+id/select"
android:onClick="@{() -> selectionListViewModel.onToggleSelect(position)}"
@ -207,4 +213,6 @@
</RelativeLayout>
</RelativeLayout>
</layout>