From db8a20f56a5133d8e00490f415801e7070060676 Mon Sep 17 00:00:00 2001 From: Robert Kolner Date: Wed, 28 Sep 2011 18:00:59 +0200 Subject: [PATCH] Enhanced looks of program list activity by adjusting text size/colour. --- res/layout/event_list_row.xml | 4 +++- res/values/styles.xml | 19 +++++++++++++++++++ .../app/ui/ProgramListActivity.java | 8 ++++---- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/res/layout/event_list_row.xml b/res/layout/event_list_row.xml index 1059ee4..cde0186 100644 --- a/res/layout/event_list_row.xml +++ b/res/layout/event_list_row.xml @@ -2,7 +2,9 @@ + android:layout_height="wrap_content" + android:paddingTop="3px" + android:paddingBottom="3px"> #cccccc + + + + + #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 95734c3..ef7271a 100644 --- a/src/com/studentersamfundet/app/ui/ProgramListActivity.java +++ b/src/com/studentersamfundet/app/ui/ProgramListActivity.java @@ -119,12 +119,12 @@ 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); + titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextEvenTilte); + dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextEvenDate); } else { row.setBackgroundResource(R.color.ListItemBackgroundOdd); - titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOdd); - dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOdd); + titleView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOddTilte); + dateView.setTextAppearance(ProgramListActivity.this, R.style.ListItemTextOddDate); } return row;