droid-fu
droid-fu copied to clipboard
Add noImageDrawable as a XML parameter
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);