material-components-android
material-components-android copied to clipboard
[ShapeableImageView] Fix multiple contentPadding issues
Solution
Closes #2063.
Should fix the following contentPadding issues:
-
contentPaddinggetters returning outdated values whenapp:contentPaddingStartorapp:contentPaddingEndare defined in xml; -
contentPaddingbeing applied twice, ifsetContentPaddingorsetContentPaddingRelativeare called before the view is measured;- in this case, the shape mask is also affected to have padding even if only
contentPaddingis defined.
- in this case, the shape mask is also affected to have padding even if only
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
For more information, open the CLA check for this pull request.