android:layout_height="match_parent"
android:orientation="vertical" >
+ <ImageView
+ android:id="@+id/rowHeader"
+ android:layout_width="match_parent"
+ android:layout_height="5dp"
+ />
+
<TextView
android:id="@+id/smalleventtitle"
android:layout_width="match_parent"
package ro.ieval.unical;
import android.content.Context;
+import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
+import android.widget.ImageView;
import android.widget.TextView;
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());
for(int i=0; i<events.length; ++i) {
EventRowContainer c=new EventRowContainer(i,events[i].title, events[i].dtstart, events[i].dtend);
r[i]=c;
+ //System.out.println(events[i].eventColour);
}
final EventAdapter adapter = new EventAdapter(this, r);
lv.setAdapter(adapter);