</LinearLayout>
</LinearLayout>
- <TextView
+ <View
+ android:layout_width="fill_parent"
+ android:layout_height="1dp"
+ android:background="@android:color/darker_gray"/>
+
+ <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/descriptionlabel"
+ android:text="@string/description"
android:textStyle="bold"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/event_view_description"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
+
+ <View
+ android:layout_width="fill_parent"
+ android:layout_height="1dp"
+ android:background="@android:color/darker_gray"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/alarms"
+ android:textStyle="bold"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
<ListView
android:id="@+id/alarm_list"
android:layout_width="match_parent"
<string name="app_id">148275978690487</string>
<string name="title">Title</string>
<string name="description">Description</string>
- <string name="descriptionlabel">Description: </string>
<string name="log_in">Log In</string>
<string name="location">Location</string>
<string name="username">Username</string>
<string name="edit_event">Edit Event</string>
<string name="add_alarm">Add alarm</string>
<string name="delete">Delete</string>
+ <string name="alarms">Alarms</string>
<string-array name="repeat_array_s">
<item>Day</item>
final DateFormat dayOfWeekFormat = new SimpleDateFormat("EEEEEEE", Locale.UK);
startDay.setText(dayOfWeekFormat.format(start));
+ startDate.setText(dateFormat.format(start));
if(!dateFormat.format(start).equals(dateFormat.format(end))) {
endDay.setText(dayOfWeekFormat.format(end));
endDate.setText(dateFormat.format(end));
}
- startDate.setText(dateFormat.format(start));
+
startTime.setText(timeFormat.format(start));
- endTime.setText(timeFormat.format(end));
+ if(!start.equals(end))
+ endTime.setText(timeFormat.format(end));
+
description.setText(event.description);
setAdapter();
}