Merge "Fix calculation of RelativeLayout width in RTL mode"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e38db1b9be
@@ -486,7 +486,7 @@ public class RelativeLayout extends ViewGroup {
|
||||
if (targetSdkVersion < Build.VERSION_CODES.KITKAT) {
|
||||
width = Math.max(width, myWidth - params.mLeft);
|
||||
} else {
|
||||
width = Math.max(width, myWidth - params.mLeft - params.leftMargin);
|
||||
width = Math.max(width, myWidth - params.mLeft + params.leftMargin);
|
||||
}
|
||||
} else {
|
||||
if (targetSdkVersion < Build.VERSION_CODES.KITKAT) {
|
||||
|
||||
Reference in New Issue
Block a user