Skip to content

Commit 25517fd

Browse files
Adam PowellAndroid Git Automerger
authored andcommitted
am 637c50d: am c7e5a2f: Merge "Fix dividers for LinearLayout (TabWidget)"
* commit '637c50db476d9a6cec13551920f7c163fef02ab8': Fix dividers for LinearLayout (TabWidget)
2 parents bb69bde + 637c50d commit 25517fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/widget/LinearLayout.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void drawDividersVertical(Canvas canvas) {
307307
if (child != null && child.getVisibility() != GONE) {
308308
if (hasDividerBeforeChildAt(i)) {
309309
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
310-
final int top = child.getTop() - lp.topMargin;
310+
final int top = child.getTop() - lp.topMargin - mDividerHeight;
311311
drawHorizontalDivider(canvas, top);
312312
}
313313
}
@@ -334,7 +334,7 @@ void drawDividersHorizontal(Canvas canvas) {
334334
if (child != null && child.getVisibility() != GONE) {
335335
if (hasDividerBeforeChildAt(i)) {
336336
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
337-
final int left = child.getLeft() - lp.leftMargin;
337+
final int left = child.getLeft() - lp.leftMargin - mDividerWidth;
338338
drawVerticalDivider(canvas, left);
339339
}
340340
}

0 commit comments

Comments
 (0)