Skip to content

SvgImage not working in RelativeLayout? #40

Description

@franzdevel

I've tried SvgImage and found that it does not work correctly for me. I do not see anything drawn in the image.

When looking deeper into the issue, I found that SvgImage relies on its OnMeasure() method to be invoked in order to determine its _size field. However, in my case OnMeasure() seems to be never invoked, probably (?) because I've placed the SvgImage in a RelativeLayout.

As a consequence, _size keeps its default value which is basically a zero size, and this (wrong) value gets transferred to _graphics.Size in SvgImage.Draw().

I'm not an expert with the layouting system, so not exactly sure what would be a correct solution for this problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions