DSpotDevelopers / declex

DecleX - Declarative Framework for Android, easier and faster coding.
Other
168 stars 25 forks source link

Populating an ImageView with a file converts to String when using a class field #203

Open smaugho opened 6 years ago

smaugho commented 6 years ago

If the layout has an ImageView with ID userImage, the following @Populate converts the field to String before calling Picasso (so, the file is not loaded correctly)

@Populate
File userImage;

But it works fine (so it passes the File object to Picasso directly) if a method is used:


    File userImage;

    @Populate
    public File getUserImage() {
        return userImage;
    }