1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-25 18:32:15 -05:00

Use integer division to calculate gallert item width.

This commit is contained in:
liato 2011-03-18 01:46:40 +01:00 committed by Sebastian Kaspari
parent b49ead73ad
commit 1ebea8f7d6
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ public class DeckAdapter extends BaseAdapter
list.setDivider(null); list.setDivider(null);
list.setLayoutParams(new Gallery.LayoutParams( list.setLayoutParams(new Gallery.LayoutParams(
new Double(parent.getWidth()*0.85).intValue(), parent.getWidth()*85/100,
parent.getHeight() parent.getHeight()
)); ));

View File

@ -95,7 +95,7 @@ public class MessageListView extends ListView
parentHeight = parent.getHeight(); parentHeight = parent.getHeight();
this.setLayoutParams(new Gallery.LayoutParams( this.setLayoutParams(new Gallery.LayoutParams(
new Double(parentWidth*0.85).intValue(), parentWidth*85/100,
parentHeight parentHeight
)); ));
} }