renaming a couple more views

This commit is contained in:
tibbi 2018-09-10 14:34:00 +02:00
parent 24f594954e
commit b31416c7f8
4 changed files with 10 additions and 10 deletions

View File

@ -67,7 +67,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList<Event>, r
private fun setupView(view: View, event: Event) { private fun setupView(view: View, event: Event) {
view.apply { view.apply {
event_section_title.text = event.title event_item_title.text = event.title
event_item_description.text = if (replaceDescriptionWithLocation) event.location else event.description event_item_description.text = if (replaceDescriptionWithLocation) event.location else event.description
event_item_start.text = if (event.getIsAllDay()) allDayString else Formatter.getTimeFromTS(context, event.startTS) event_item_start.text = if (event.getIsAllDay()) allDayString else Formatter.getTimeFromTS(context, event.startTS)
event_item_end.beInvisibleIf(event.startTS == event.endTS) event_item_end.beInvisibleIf(event.startTS == event.endTS)
@ -98,7 +98,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList<Event>, r
event_item_start.setTextColor(newTextColor) event_item_start.setTextColor(newTextColor)
event_item_end.setTextColor(newTextColor) event_item_end.setTextColor(newTextColor)
event_section_title.setTextColor(newTextColor) event_item_title.setTextColor(newTextColor)
event_item_description.setTextColor(newTextColor) event_item_description.setTextColor(newTextColor)
} }
} }

View File

@ -34,7 +34,7 @@
android:textSize="@dimen/day_text_size"/> android:textSize="@dimen/day_text_size"/>
<TextView <TextView
android:id="@+id/event_section_title" android:id="@+id/event_item_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/activity_margin" android:layout_marginLeft="@dimen/activity_margin"
@ -50,7 +50,7 @@
android:id="@+id/event_item_description" android:id="@+id/event_item_description"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/event_section_title" android:layout_below="@+id/event_item_title"
android:layout_marginLeft="@dimen/activity_margin" android:layout_marginLeft="@dimen/activity_margin"
android:layout_toLeftOf="@+id/event_item_color" android:layout_toLeftOf="@+id/event_item_color"
android:layout_toRightOf="@+id/event_item_end" android:layout_toRightOf="@+id/event_item_end"
@ -64,10 +64,10 @@
android:id="@+id/event_item_color" android:id="@+id/event_item_color"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignBottom="@+id/event_section_title" android:layout_alignBottom="@+id/event_item_title"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignTop="@+id/event_section_title" android:layout_alignTop="@+id/event_item_title"
android:paddingRight="@dimen/activity_margin" android:paddingRight="@dimen/activity_margin"
android:src="@drawable/monthly_event_dot"/> android:src="@drawable/monthly_event_dot"/>

View File

@ -68,10 +68,10 @@
android:id="@+id/event_item_color" android:id="@+id/event_item_color"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignBottom="@+id/event_section_title" android:layout_alignBottom="@+id/event_item_title"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignTop="@+id/event_section_title" android:layout_alignTop="@+id/event_item_title"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
android:src="@drawable/monthly_event_dot"/> android:src="@drawable/monthly_event_dot"/>

View File

@ -44,10 +44,10 @@
android:id="@+id/event_item_color" android:id="@+id/event_item_color"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignBottom="@+id/event_section_title" android:layout_alignBottom="@+id/event_item_title"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignTop="@+id/event_section_title" android:layout_alignTop="@+id/event_item_title"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
android:src="@drawable/monthly_event_dot"/> android:src="@drawable/monthly_event_dot"/>