Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

SVG Remove White space #31

Open
alpesh031 opened this issue Jul 30, 2018 · 3 comments
Open

SVG Remove White space #31

alpesh031 opened this issue Jul 30, 2018 · 3 comments

Comments

@alpesh031
Copy link

alpesh031 commented Jul 30, 2018

How to remove white space around svg file? "adjustviewbound:" or "scaletype:" property not working as like normal imageview. i want to display svg image with my custom size, is it possible then please let me know.

"RichPathView" is taking whole screen even after i set it to "wrap_content" for custom width and height.

Thank you.

@tarek360
Copy link
Owner

tarek360 commented Aug 2, 2018

@alpesh031
just set your custom size in the vector drawable xml file,

like this:

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="32dp"
    android:height="32dp"
    ...
</vector>

@mahmutadana
Copy link

Why does it not display when we give a value greater than the screen dimensions? Even if it's inside a scrollview.

@tarek360
Copy link
Owner

tarek360 commented Jun 8, 2021

@mahmutadana could you provide a full example, please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants