mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 04:12:18 -05:00
Use integer division to calculate gallert item width.
This commit is contained in:
parent
b49ead73ad
commit
1ebea8f7d6
@ -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()
|
||||
));
|
||||
|
||||
|
@ -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
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user