Merge "PIN Bouncer: Fix margins" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9441b74bcb
@@ -156,9 +156,14 @@ public class NumPadKey extends ViewGroup {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
mAnimator.updateMargin((ViewGroup.MarginLayoutParams) getLayoutParams());
|
||||
public void setLayoutParams(ViewGroup.LayoutParams params) {
|
||||
mAnimator.updateMargin((ViewGroup.MarginLayoutParams) params);
|
||||
|
||||
super.setLayoutParams(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
measureChildren(widthMeasureSpec, heightMeasureSpec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user