Closed neroux closed 3 years ago
Hey @neroux,
If your drawable's height and width are different from its viewportHeight and viewportWidth, set app:maxImageSize
on the ExpandableFab equal to the width/height of the drawable. So in your instance, set app:maxImageSize
to 30dp
. This is an attribute from the Android SDK.
Thanks Kelvin, that did the trick
Hey @neroux,
If your drawable's height and width are different from its viewportHeight and viewportWidth, set
app:maxImageSize
on the ExpandableFab equal to the width/height of the drawable. So in your instance, setapp:maxImageSize
to30dp
. This is an attribute from the Android SDK.
@kabumere You should mention this in the installation guide. Please
Hi Kelvin,
Using the following drawable for the main button the image is originaly rendered fine, though the moment it is clicked (and re-renders the image) the image is not centred any more but shifted off.
It appears to happen because the dimensions do not match the viewport dimensions (30 vs 24) but that's exactly what Android Studio generated (when choosing
30
), so I wouldn't not assume the definition is invalid per se.