From 540989f38ac3675b80db9be77f3f8216475c992a Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 10 May 2019 18:43:06 +0200 Subject: [PATCH] Fix / ripple effect broken after merge --- .../room/detail/timeline/item/AbsMessageItem.kt | 3 +-- .../main/res/layout/item_timeline_event_base.xml | 14 ++++++++------ .../res/layout/item_timeline_event_base_noinfo.xml | 1 + 3 files changed, 10 insertions(+), 8 deletions(-) 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" />