public void setShadowXOffset(int dimenResId) {
        int shadowXOffset = getResources().getDimensionPixelSize(dimenResId);
        if (mShadowXOffset != shadowXOffset) {
            mShadowXOffset = shadowXOffset;
            requestLayout();
            updateBackground();
        }
    }
public void setShadowXOffset(int dimenResId) {
        int shadowXOffset = getResources().getDimensionPixelSize(dimenResId);
        if (mShadowXOffset != shadowXOffset) {
            mShadowXOffset = shadowXOffset;
            requestLayout();
            updateBackground();
        }
    }
public void setShadowXOffset ( int dimenResId ) { int shadowXOffset = getResources ( ) . getDimensionPixelSize ( dimenResId ) ; if ( mShadowXOffset != shadowXOffset ) { mShadowXOffset = shadowXOffset ; requestLayout ( ) ; updateBackground ( ) ; } }
Sets the shadow x offset of the <b>FloatingActionButton</b> and invalidates its layout.

@param dimenResId the resource identifier of the dimension
Sets the shadow x offset of the <b > FloatingActionButton< / b > and invalidates its layout .