lib/src/main/java/com/shamanland/fab/FloatingActionButton.java
public void initBackground() {
        final int backgroundId;

        if (mSize == SIZE_MINI) {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                backgroundId = R.drawable.com_shamanland_fab_circle_mini;
            } else {
                backgroundId = R.drawable.com_shamanland_fab_mini;
            }
        } else {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                backgroundId = R.drawable.com_shamanland_fab_circle_normal;
            } else {
                backgroundId = R.drawable.com_shamanland_fab_normal;
            }
        }

        updateBackground(getResources().getDrawable(backgroundId));
    }
public void initBackground() {
        final int backgroundId;

        if (mSize == SIZE_MINI) {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                backgroundId = R.drawable.com_shamanland_fab_circle_mini;
            } else {
                backgroundId = R.drawable.com_shamanland_fab_mini;
            }
        } else {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                backgroundId = R.drawable.com_shamanland_fab_circle_normal;
            } else {
                backgroundId = R.drawable.com_shamanland_fab_normal;
            }
        }

        updateBackground(getResources().getDrawable(backgroundId));
    }
public void initBackground ( ) { final int backgroundId ; if ( mSize == SIZE_MINI ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { backgroundId = R . drawable . com_shamanland_fab_circle_mini ; } else { backgroundId = R . drawable . com_shamanland_fab_mini ; } } else { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { backgroundId = R . drawable . com_shamanland_fab_circle_normal ; } else { backgroundId = R . drawable . com_shamanland_fab_normal ; } } updateBackground ( getResources ( ) . getDrawable ( backgroundId ) ) ; }
Inflate and initialize background drawable for this view with arguments
inflated from xml or specified using {@link #setSize(int)} or {@link #setColor(int)}
<p/>
Invoked from constructor, but it's allowed to invoke this method manually from code.
Inflate and initialize background drawable for this view with arguments inflated from xml or specified using {