Fresco: Fresco not showing a placeholder image in a simpledraweeview with width match_parent

Created on 18 Jul 2016  路  1Comment  路  Source: facebook/fresco

        <com.facebook.drawee.view.SimpleDraweeView
            xmlns:fresco="http://schemas.android.com/tools"
            android:id="@+id/reuse_restaurant_cover_image"
            android:layout_width="match_parent"
            android:layout_height="150dp"
            android:layout_gravity="center"
            fresco:actualImageScaleType="centerCrop"
            fresco:placeholderImage="@drawable/placeholder"
            fresco:placeholderImageScaleType="centerCrop"
            fresco:failureImage="@drawable/placeholder"
            fresco:failureImageScaleType="centerCrop"
            />

This is the layout i am using. Here, no matter what i try, fresco refuses to show a placeholder image, please help

Most helpful comment

never mind -> android studio had decided to use tools namespace instead of res-auto :( my bad.

>All comments

never mind -> android studio had decided to use tools namespace instead of res-auto :( my bad.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ykostova picture ykostova  路  3Comments

qiiyue picture qiiyue  路  4Comments

cococool picture cococool  路  4Comments

bigfreeZhou picture bigfreeZhou  路  4Comments

hbzhzw picture hbzhzw  路  3Comments