private Drawable createActivatedBackgroundDrawable ( ) { Drawable drawable = createBackgroundDrawable ( getColor ( ) ) ; Drawable hoverDrawable = createBackgroundDrawable ( getActivatedColor ( ) ) ; return new LayerDrawable ( new Drawable [ ] { drawable , hoverDrawable } ) ; }
Creates and returns a drawable which can be used as the floating action button s background when it is activated .