aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2011-10-25 15:04:57 -0500
committerAndy Doan <andy.doan@linaro.org>2011-10-25 15:04:57 -0500
commitf614968c8863faa022898b51ebfbfb606e1d5fe3 (patch)
tree2aa3daf4284e34553c04a959854d5ed6e790acee
parent121226a8545dc77279cec85e97e51e72e5c7400a (diff)
downloadLinaroConnect-f614968c8863faa022898b51ebfbfb606e1d5fe3.tar.gz
show category in schedule item activity
-rw-r--r--res/layout/schedule_item_activity.xml6
-rw-r--r--src/org/linaro/connect/ScheduleItemActivity.java8
2 files changed, 13 insertions, 1 deletions
diff --git a/res/layout/schedule_item_activity.xml b/res/layout/schedule_item_activity.xml
index c8422fa..c222250 100644
--- a/res/layout/schedule_item_activity.xml
+++ b/res/layout/schedule_item_activity.xml
@@ -38,7 +38,11 @@
/>
</LinearLayout>
</LinearLayout>
-
+ <TextView android:id="@+id/schedule_item_categories"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:textSize="10sp"
+ />
<TextView android:id="@+id/schedule_item_desc"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
diff --git a/src/org/linaro/connect/ScheduleItemActivity.java b/src/org/linaro/connect/ScheduleItemActivity.java
index ed1d70f..35fff73 100644
--- a/src/org/linaro/connect/ScheduleItemActivity.java
+++ b/src/org/linaro/connect/ScheduleItemActivity.java
@@ -22,6 +22,14 @@ public class ScheduleItemActivity extends Activity {
setTextView(R.id.schedule_item_time, si.getStartTime(null));
setTextView(R.id.schedule_item_room, si.getLocation());
setTextView(R.id.schedule_item_desc, si.getDescription());
+
+ StringBuffer sb = new StringBuffer();
+ for(String s: si.getCategories()) {
+ if(sb.length() > 0)
+ sb.append(", ");
+ sb.append(s);
+ }
+ setTextView(R.id.schedule_item_categories, sb.toString());
}
private void setTextView(int id, String val) {