am c7e5a2fe
: Merge "Fix dividers for LinearLayout (TabWidget)"
* commit 'c7e5a2fe3042014f78667228a92e41d0a19547fd': Fix dividers for LinearLayout (TabWidget)
This commit is contained in:
@ -307,7 +307,7 @@ public class LinearLayout extends ViewGroup {
|
||||
if (child != null && child.getVisibility() != GONE) {
|
||||
if (hasDividerBeforeChildAt(i)) {
|
||||
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
|
||||
final int top = child.getTop() - lp.topMargin;
|
||||
final int top = child.getTop() - lp.topMargin - mDividerHeight;
|
||||
drawHorizontalDivider(canvas, top);
|
||||
}
|
||||
}
|
||||
@ -334,7 +334,7 @@ public class LinearLayout extends ViewGroup {
|
||||
if (child != null && child.getVisibility() != GONE) {
|
||||
if (hasDividerBeforeChildAt(i)) {
|
||||
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
|
||||
final int left = child.getLeft() - lp.leftMargin;
|
||||
final int left = child.getLeft() - lp.leftMargin - mDividerWidth;
|
||||
drawVerticalDivider(canvas, left);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user