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:
parent
b49ead73ad
commit
1ebea8f7d6
@ -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()
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -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
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user