Improve list view layout.

This commit is contained in:
Jimmy Shih
2013-02-20 11:13:39 -08:00
parent 9394031177
commit b064bccc52
3 changed files with 58 additions and 54 deletions
@@ -138,10 +138,14 @@ public class ListItemUtils {
if (category == null || category.length() == 0) {
return description;
}
if (description == null || description.length() == 0) {
return category;
StringBuffer buffer = new StringBuffer();
buffer.append("[" + category + "]");
if (description != null && description.length() != 0) {
buffer.append(" " + description);
}
return "[" + category + "] " + description;
return buffer.toString();
}
/**