From 82d6ca0169344ba4d1e6995ac26f059fc9e05a01 Mon Sep 17 00:00:00 2001 From: Petru Trimbitas Date: Thu, 13 Jun 2013 20:03:08 +0300 Subject: [PATCH] Add description to event_view --- res/layout/event_view.xml | 7 +++++++ src/ro/ieval/unical/DisplayEventActivity.java | 2 ++ 2 files changed, 9 insertions(+) diff --git a/res/layout/event_view.xml b/res/layout/event_view.xml index 42b2992..bcc97aa 100644 --- a/res/layout/event_view.xml +++ b/res/layout/event_view.xml @@ -5,6 +5,7 @@ android:orientation="vertical" > @@ -75,5 +77,10 @@ android:text="@string/descriptionlabel" android:textStyle="bold" android:textAppearance="?android:attr/textAppearanceLarge" /> + \ No newline at end of file diff --git a/src/ro/ieval/unical/DisplayEventActivity.java b/src/ro/ieval/unical/DisplayEventActivity.java index 798adc6..967a556 100644 --- a/src/ro/ieval/unical/DisplayEventActivity.java +++ b/src/ro/ieval/unical/DisplayEventActivity.java @@ -35,6 +35,7 @@ public class DisplayEventActivity extends Activity { final TextView endDate= (TextView) findViewById(R.id.enddate); final TextView startTime= (TextView) findViewById(R.id.starttime); final TextView endTime= (TextView) findViewById(R.id.endtime); + final TextView description= (TextView) findViewById(R.id.event_view_description); final Date start=new Date(e.dtstart); final Date end=new Date(e.dtend); @@ -50,6 +51,7 @@ public class DisplayEventActivity extends Activity { startDate.setText(dateFormat.format(start)); startTime.setText(timeFormat.format(start)); endTime.setText(timeFormat.format(end)); + description.setText(e.description); } @Override -- 2.39.2