droid-fu icon indicating copy to clipboard operation
droid-fu copied to clipboard

Add noImageDrawable as a XML parameter

Open Macarse opened this issue 14 years ago • 0 comments

I have done it for me:

<com.blah.WebImageView android:id="@+id/user_logo" android:layout_width="60dp" android:layout_height="60dp" ntm:autoLoad="false" blah:noImageDrawable="@drawable/no_user"/>

In public WebImageView(Context context, AttributeSet attributes)

I added: int noImage = attributes.getAttributeResourceValue(XMLNS, "noImageDrawable", -1); if ( noImage != -1 ) { setNoImageDrawable(noImage);

Macarse avatar Jul 13 '10 02:07 Macarse