Skip to content

Commit

Permalink
fix(MD-4222): add padding to imageView if it's svg
Browse files Browse the repository at this point in the history
  • Loading branch information
vcellu authored and enell committed Mar 24, 2023
1 parent c59bacf commit d2e710c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ private void loadSVG(DataCell cell, ImageView imageView) {
SVG svg = SVG.getFromString(svgXML);
Drawable drawable = new PictureDrawable(svg.renderToPicture());
imageView.setImageDrawable(drawable);
imageView.setPadding((int) PixelUtils.dpToPx(8), 0, (int) PixelUtils.dpToPx(8), 0);
} catch (Exception exception) {
Log.e("Image", exception.getMessage());
}
Expand Down

0 comments on commit d2e710c

Please sign in to comment.