diff --git a/res/layout/event_list_row.xml b/res/layout/event_list_row.xml index a31f6c1..1059ee4 100644 --- a/res/layout/event_list_row.xml +++ b/res/layout/event_list_row.xml @@ -1,6 +1,5 @@ diff --git a/res/values/styles.xml b/res/values/styles.xml index 4a4fdb1..2cee4b5 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -1,5 +1,6 @@ + - - #202020 - #000000 + #000000 + \ No newline at end of file diff --git a/src/com/studentersamfundet/app/ui/ProgramListActivity.java b/src/com/studentersamfundet/app/ui/ProgramListActivity.java index fa9d35b..4e51a6f 100644 --- a/src/com/studentersamfundet/app/ui/ProgramListActivity.java +++ b/src/com/studentersamfundet/app/ui/ProgramListActivity.java @@ -67,12 +67,6 @@ public class ProgramListActivity extends BaseDnsActivity { } else { row = convertView; } - - /* Apply styles: */ - if (position % 2 == 0) - row.setBackgroundResource(R.color.ListItemEven); - else - row.setBackgroundResource(R.color.ListItemOdd); final Event e = getItem(position); @@ -92,6 +86,17 @@ public class ProgramListActivity extends BaseDnsActivity { } }); + /* Apply styles: */ + if (position % 2 == 0) { + row.setBackgroundResource(R.color.ListItemBackgroundEven); + titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextEven); + dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextEven); + } else { + row.setBackgroundResource(R.color.ListItemBackgroundOdd); + titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOdd); + dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOdd); + } + return row; } };