FabianTerhorst / FastLayout

Generates a Java Object for your xml layout to reduce inflate time to zero
Apache License 2.0
443 stars 35 forks source link

Customs layouts - missing support #26

Open yoni19888 opened 8 years ago

yoni19888 commented 8 years ago

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!