From c2216ed0fc9e8cc12cd79e62bbe184a4cbc80d06 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 19 Mar 2019 23:56:06 +0100 Subject: [PATCH] make sure there are no overlapping texts at the event attendees --- .../calendar/pro/activities/EventActivity.kt | 4 ++++ app/src/main/res/layout/item_attendee.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 43f4162f9..ca15a7510 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -1266,6 +1266,10 @@ class EventActivity : SimpleActivity() { selectedAttendeeDismiss.beGoneIf(isMe) selectedAttendeeDismiss.tag = attendee.contactId + if (isMe) { + (selectedAttendeeName.layoutParams as RelativeLayout.LayoutParams).addRule(RelativeLayout.START_OF, selectedAttendeeHolder.event_contact_me_status.id) + } + selectedAttendeeHolder.event_contact_me_status.beVisibleIf(isMe) selectedAttendeeHolder.event_contact_me_status.text = getString(when (attendee.status) { CalendarContract.Attendees.ATTENDEE_STATUS_ACCEPTED -> R.string.going diff --git a/app/src/main/res/layout/item_attendee.xml b/app/src/main/res/layout/item_attendee.xml index 8c5bd897e..7bd73e26e 100644 --- a/app/src/main/res/layout/item_attendee.xml +++ b/app/src/main/res/layout/item_attendee.xml @@ -80,6 +80,7 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" + android:layout_marginStart="@dimen/normal_margin" android:layout_marginEnd="@dimen/activity_margin" android:ellipsize="end" android:gravity="end"