From: Petru Trimbitas Date: Sun, 9 Jun 2013 19:51:11 +0000 (+0300) Subject: add tiny bar on the event list` X-Git-Url: http://git.ieval.ro/?p=unical.git;a=commitdiff_plain;h=8bdd670e70d1edc6f08279c288eb8b16c9aacd80 add tiny bar on the event list` --- 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