Fix ActionMenuView vertical alignment of items

BUG: 18066203
Change-Id: I2a34f5b8b33e1e0f32c54acf79b281290fc047f1
This commit is contained in:
Chris Banes
2014-10-29 11:04:49 +00:00
parent 8be95fdde6
commit 1970cfd4ef

View File

@@ -429,7 +429,7 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
}
final int childCount = getChildCount();
final int midVertical = (top + bottom) / 2;
final int midVertical = (bottom - top) / 2;
final int dividerWidth = getDividerWidth();
int overflowWidth = 0;
int nonOverflowWidth = 0;