private int getPixelSize ( ) { if ( getSize ( ) == Size . NORMAL ) { return getResources ( ) . getDimensionPixelSize ( R . dimen . floating_action_button_size_normal ) ; } else if ( getSize ( ) == Size . SMALL ) { return getResources ( ) . getDimensionPixelSize ( R . dimen . floating_action_button_size_small ) ; } else { return getResources ( ) . getDimensionPixelSize ( R . dimen . floating_action_button_size_large ) ; } }
Returns the size of the floating action button in pixels depending on its current size .