Skip to content

Customs layouts - missing support #26

@yoni19888

Description

@yoni19888

When i tried to build my project with your plugin i got these errors for PercentRelativeLayout

logo.setLayoutHeightPercent("25%");
logo.setLayoutMarginTopPercent("10%");
logo.setLayoutWidthPercent("35%");

Cannot resolve method 'setLayoutHeightPercent(java.lang.String)'

Same issue for ImageView.setSrc

<ImageView
        android:id="@+id/logo"
        android:layout_centerHorizontal="true"
        app:layout_widthPercent="35%"
        app:layout_heightPercent="25%"
        app:layout_marginTopPercent="10%"
        android:adjustViewBounds="true"
        android:src="@drawable/logo"` />

it's genreated a wrong method call
logo.setSrc(getContext().getResources().getDrawable(R.drawable.logo));

Thank you!

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