Account for background drawable size changing when lrtb properties change
LayoutTransition may set the left, right, top, bottom properties of a View when animating it. If the View has a background drawable, and if these properties change the actual dimensions of the view, then the background drawable must be informed of the size change in order to display itself correctly. Change-Id: I8ae47a051b250d0d4bdee97b1f1b5d27fe3f7f8b
This commit is contained in:
@@ -5830,6 +5830,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
||||
mPrivateFlags |= DRAWN; // force another invalidation with the new orientation
|
||||
invalidate();
|
||||
}
|
||||
mBackgroundSizeChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5882,6 +5883,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
||||
mPrivateFlags |= DRAWN; // force another invalidation with the new orientation
|
||||
invalidate();
|
||||
}
|
||||
mBackgroundSizeChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5937,7 +5939,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
||||
mPrivateFlags |= DRAWN; // force another invalidation with the new orientation
|
||||
invalidate();
|
||||
}
|
||||
|
||||
mBackgroundSizeChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5990,6 +5992,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
||||
mPrivateFlags |= DRAWN; // force another invalidation with the new orientation
|
||||
invalidate();
|
||||
}
|
||||
mBackgroundSizeChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user