private void applyCompoundDrawablesWithIntrinsicBoundsAttributes() { setCompoundDrawablesWithIntrinsicBounds( attributeSet.getAttributeResourceValue("android", "drawableLeft", 0), attributeSet.getAttributeResourceValue("android", "drawableTop", 0), attributeSet.getAttributeResourceValue("android", "drawableRight", 0), attributeSet.getAttributeResourceValue("android", "drawableBottom", 0)); }