From c88322a922064781893a86f3de640f6429c9549f Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 17 Mar 2010 19:58:23 +0100 Subject: [PATCH] Rounded corners for conversation views --- res/layout/rounded.xml | 30 ++++++++++++++++++++++++++ src/org/yaaic/adapter/DeckAdapter.java | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 res/layout/rounded.xml diff --git a/res/layout/rounded.xml b/res/layout/rounded.xml new file mode 100644 index 0000000..d2895e0 --- /dev/null +++ b/res/layout/rounded.xml @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/org/yaaic/adapter/DeckAdapter.java b/src/org/yaaic/adapter/DeckAdapter.java index 08acfc1..1a96689 100644 --- a/src/org/yaaic/adapter/DeckAdapter.java +++ b/src/org/yaaic/adapter/DeckAdapter.java @@ -24,6 +24,7 @@ import java.util.Collections; import java.util.LinkedList; import java.util.List; +import org.yaaic.R; import org.yaaic.model.Conversation; import org.yaaic.view.MessageListView; @@ -200,7 +201,7 @@ public class DeckAdapter extends BaseAdapter parent.getWidth() / 100 * 85, parent.getHeight() / 100 * 95 )); - list.setBackgroundColor(0xff222222); + list.setBackgroundResource(R.layout.rounded); list.setPadding(5, 5, 5, 5); list.setVerticalFadingEdgeEnabled(false); list.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_INSET);