diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt index 0bb45a64..3f2cfd4b 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt @@ -44,12 +44,11 @@ abstract class AbsMessageItem : AEventItemBase() { super.bind(holder) if (informationData.showInformation) { - val lp = holder.avatarImageView.layoutParams?.apply { + holder.avatarImageView.layoutParams = holder.avatarImageView.layoutParams?.apply { val size = dpToPx(avatarStyle.avatarSizeDP, holder.view.context) height = size width = size } - holder.avatarImageView.layoutParams = lp holder.avatarImageView.visibility = View.VISIBLE holder.avatarImageView.setOnClickListener(avatarClickListener) diff --git a/vector/src/main/res/layout/item_timeline_event_base.xml b/vector/src/main/res/layout/item_timeline_event_base.xml index e1f9d757..80a0159e 100644 --- a/vector/src/main/res/layout/item_timeline_event_base.xml +++ b/vector/src/main/res/layout/item_timeline_event_base.xml @@ -4,6 +4,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" + android:addStatesFromChildren="true" + android:background="?attr/selectableItemBackground" android:paddingLeft="8dp" android:paddingRight="8dp"> @@ -18,11 +20,11 @@ tools:src="@tools:sample/avatars" /> + android:orientation="vertical" + tools:layout_constraintGuide_begin="44dp" /> + tools:ignore="MissingConstraints" + tools:visibility="visible" />