diff --git a/application/src/org/yaaic/adapter/DeckAdapter.java b/application/src/org/yaaic/adapter/DeckAdapter.java index b6b3c83..04269e1 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( - new Double(parent.getWidth()*0.85).intValue(), + parent.getWidth()*85/100, parent.getHeight() )); diff --git a/application/src/org/yaaic/view/MessageListView.java b/application/src/org/yaaic/view/MessageListView.java index e7f1148..cf2f28d 100644 --- a/application/src/org/yaaic/view/MessageListView.java +++ b/application/src/org/yaaic/view/MessageListView.java @@ -95,7 +95,7 @@ public class MessageListView extends ListView parentHeight = parent.getHeight(); this.setLayoutParams(new Gallery.LayoutParams( - new Double(parentWidth*0.85).intValue(), + parentWidth*85/100, parentHeight )); }