private Drawable createBackgroundDrawable ( @ ColorInt final int color ) { OvalShape shape = new OvalShape ( ) ; ShapeDrawable drawable = new ShapeDrawable ( shape ) ; drawable . getPaint ( ) . setColor ( color ) ; return drawable ; }
Creates and returns a drawable with a specific color which can be used as the floating action button s background .