From b49ead73ada293cc7beb9bc78eee10c3416045c8 Mon Sep 17 00:00:00 2001 From: liato Date: Wed, 16 Mar 2011 04:25:15 +0100 Subject: [PATCH] Fix width issues in gallery. --- application/res/layout/conversations.xml | 7 ++++--- application/src/org/yaaic/adapter/DeckAdapter.java | 2 +- application/src/org/yaaic/view/MessageListView.java | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/application/res/layout/conversations.xml b/application/res/layout/conversations.xml index 87c895b..f0b80a3 100644 --- a/application/res/layout/conversations.xml +++ b/application/res/layout/conversations.xml @@ -53,9 +53,10 @@ along with Yaaic. If not, see . android:id="@+id/deck" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:layout_margin="0dp" + android:layout_margin="0px" + android:unselectedAlpha="100" android:spacing="5dp" - android:unselectedAlpha="100"/> + android:padding="0dp" /> . android:drawableLeft="@android:drawable/ic_btn_speak_now" android:visibility="gone" /> - \ No newline at end of file + diff --git a/application/src/org/yaaic/adapter/DeckAdapter.java b/application/src/org/yaaic/adapter/DeckAdapter.java index 1ff753d..b6b3c83 100644 --- a/application/src/org/yaaic/adapter/DeckAdapter.java +++ b/application/src/org/yaaic/adapter/DeckAdapter.java @@ -212,7 +212,7 @@ public class DeckAdapter extends BaseAdapter list.setDivider(null); list.setLayoutParams(new Gallery.LayoutParams( - parent.getWidth() / 100 * 85, + new Double(parent.getWidth()*0.85).intValue(), parent.getHeight() )); diff --git a/application/src/org/yaaic/view/MessageListView.java b/application/src/org/yaaic/view/MessageListView.java index 16cdf96..e7f1148 100644 --- a/application/src/org/yaaic/view/MessageListView.java +++ b/application/src/org/yaaic/view/MessageListView.java @@ -95,8 +95,8 @@ public class MessageListView extends ListView parentHeight = parent.getHeight(); this.setLayoutParams(new Gallery.LayoutParams( - parent.getWidth() / 100 * 85, - parent.getHeight() + new Double(parentWidth*0.85).intValue(), + parentHeight )); }