[go: nahoru, domu]

Skip to content

Commit

Permalink
Handle programmatic change of padding properly
Browse files Browse the repository at this point in the history
  • Loading branch information
hdodenhof committed Jul 3, 2016
1 parent f98b11c commit b9db84f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
setup();
}

@Override
public void setPadding(int left, int top, int right, int bottom) {
super.setPadding(left, top, right, bottom);
setup();
}

@Override
public void setPaddingRelative(int start, int top, int end, int bottom) {
super.setPaddingRelative(start, top, end, bottom);
setup();
}

public int getBorderColor() {
return mBorderColor;
}
Expand Down

0 comments on commit b9db84f

Please sign in to comment.