diff --git a/app/src/main/res/layout/fragment_detail_item.xml b/app/src/main/res/layout/fragment_detail_item.xml index 3d625b9..758e03c 100644 --- a/app/src/main/res/layout/fragment_detail_item.xml +++ b/app/src/main/res/layout/fragment_detail_item.xml @@ -25,7 +25,7 @@ android:orientation="horizontal" android:background="?android:attr/selectableItemBackground" android:focusable="true" - android:paddingBottom="6dp" android:paddingTop="6dp"> + android:paddingBottom="6dp" android:paddingTop="6dp" android:paddingEnd="6dp"> + app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="3dp"/> + app:layout_constraintBottom_toTopOf="@id/detail_item_attachment_image" app:layout_constraintEnd_toStartOf="@id/detail_item_icon" android:layout_marginEnd="6dp"/> + app:layout_constraintTop_toBottomOf="@+id/detail_item_date_text" app:layout_constraintEnd_toStartOf="@id/detail_item_icon" android:layout_marginEnd="6dp" tools:layout_constraintEnd_toStartOf="@id/detail_item_icon"/> @@ -193,8 +192,19 @@ app:layout_constraintTop_toBottomOf="@id/detail_item_actions_wrapper" app:layout_constraintBottom_toBottomOf="parent"/> + android:layout_height="0dp" + app:srcCompat="@drawable/ic_notification" + android:id="@+id/detail_item_icon" + android:visibility="visible" + android:maxHeight="40dp" + android:maxWidth="40dp" + android:adjustViewBounds="true" + android:scaleType="fitStart" + android:padding="0dp" + app:layout_constraintTop_toTopOf="@+id/detail_item_date_text" + app:layout_constraintBottom_toBottomOf="@+id/detail_item_message_text" + app:layout_constraintEnd_toStartOf="@id/detail_item_menu_button" + android:layout_marginEnd="6dp"/>