From b283880427c8dfc13ee2b3a6cb28b9e961945baf Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 19 Feb 2013 00:21:50 -0500 Subject: [PATCH] Android: Switch to a table layout instead of just a list layout. The list layout didn't align the columns. --- android/BOINC/res/layout/msgs_layout.xml | 6 +-- .../BOINC/res/layout/msgs_layout_listitem.xml | 42 +++++++++++-------- .../boinc/adapter/MessagesListAdapter.java | 2 +- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/android/BOINC/res/layout/msgs_layout.xml b/android/BOINC/res/layout/msgs_layout.xml index 53556092f6..1cacc16993 100644 --- a/android/BOINC/res/layout/msgs_layout.xml +++ b/android/BOINC/res/layout/msgs_layout.xml @@ -22,11 +22,11 @@ android:layout_height="match_parent" android:orientation="vertical" > - + android:layout_height="wrap_content" > - + diff --git a/android/BOINC/res/layout/msgs_layout_listitem.xml b/android/BOINC/res/layout/msgs_layout_listitem.xml index 9d0dc8cf83..16a3848b51 100644 --- a/android/BOINC/res/layout/msgs_layout_listitem.xml +++ b/android/BOINC/res/layout/msgs_layout_listitem.xml @@ -23,25 +23,33 @@ android:layout_height="match_parent" android:orientation="horizontal" > - + android:orientation="horizontal" > - + - + + + + + \ No newline at end of file diff --git a/android/BOINC/src/edu/berkeley/boinc/adapter/MessagesListAdapter.java b/android/BOINC/src/edu/berkeley/boinc/adapter/MessagesListAdapter.java index 8165fbf8db..5560fb4689 100644 --- a/android/BOINC/src/edu/berkeley/boinc/adapter/MessagesListAdapter.java +++ b/android/BOINC/src/edu/berkeley/boinc/adapter/MessagesListAdapter.java @@ -58,7 +58,7 @@ public class MessagesListAdapter extends ArrayAdapter{ // Construct output String project = listItem.project; - String date = new Date(listItem.timestamp/1000).toString(); + String date = new Date(listItem.timestamp).toString(); String message = listItem.body; // Instantiate layout elements