Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: VectorDrawable not shown correctly #32

Open
AndroidDeveloperLB opened this issue Mar 30, 2023 · 0 comments
Open

Bug: VectorDrawable not shown correctly #32

AndroidDeveloperLB opened this issue Mar 30, 2023 · 0 comments

Comments

@AndroidDeveloperLB
Copy link

I've tried to show this VectorDrawable, and it doesn't show the same on VectorMasterView compared to ImageView:

boy.zip

It doesn't show the eyes and the mouth, on both the IDE preview and when running the app:

image

Using this:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"
    tools:context=".MainActivity">

    <ImageView
        android:id="@+id/imageView" android:layout_width="150dp" android:layout_height="150dp"
        android:src="@drawable/boy" />

    <com.sdsmdg.harjot.vectormaster.VectorMasterView
        android:id="@+id/vectorMasterView" android:layout_width="150dp" android:layout_height="150dp"
        app:vector_src="@drawable/boy" />
</LinearLayout>

Sample:

VectorDrawableChangerTest.zip

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

No branches or pull requests

1 participant