From 8bdd670e70d1edc6f08279c288eb8b16c9aacd80 Mon Sep 17 00:00:00 2001 From: Petru Trimbitas Date: Sun, 9 Jun 2013 22:51:11 +0300 Subject: [PATCH] add tiny bar on the event list` --- res/layout/event_row_layout.xml | 6 ++++++ src/ro/ieval/unical/EventAdapter.java | 4 ++++ src/ro/ieval/unical/EventListActivity.java | 1 + 3 files changed, 11 insertions(+) diff --git a/res/layout/event_row_layout.xml b/res/layout/event_row_layout.xml index bb55f15..1f92a3c 100644 --- a/res/layout/event_row_layout.xml +++ b/res/layout/event_row_layout.xml @@ -4,6 +4,12 @@ android:layout_height="match_parent" android:orientation="vertical" > + + { TextView title = (TextView) rowView.findViewById(R.id.smalleventtitle); TextView dstart = (TextView) rowView.findViewById(R.id.smalldatestart); TextView dend = (TextView) rowView.findViewById(R.id.smalldateend); + ImageView header = (ImageView) rowView.findViewById(R.id.rowHeader); + header.setBackgroundColor(Color.CYAN); title.setText(values[position].name); dstart.setText(values[position].dtstart.toString()); dend.setText(values[position].dtend.toString()); diff --git a/src/ro/ieval/unical/EventListActivity.java b/src/ro/ieval/unical/EventListActivity.java index 9e6d2e8..1b55024 100644 --- a/src/ro/ieval/unical/EventListActivity.java +++ b/src/ro/ieval/unical/EventListActivity.java @@ -38,6 +38,7 @@ public class EventListActivity extends Activity { for(int i=0; i