library/src/main/java/de/mrapp/android/view/FloatingActionButton.java
private void adaptImageButtonSize() {
        int pixelSize = getPixelSize();
        LayoutParams layoutParams = (LayoutParams) imageButton.getLayoutParams();
        layoutParams.width = pixelSize;
        layoutParams.height = pixelSize;
        imageButton.setLayoutParams(layoutParams);
        imageButton.requestLayout();
    }
private void adaptImageButtonSize() {
        int pixelSize = getPixelSize();
        LayoutParams layoutParams = (LayoutParams) imageButton.getLayoutParams();
        layoutParams.width = pixelSize;
        layoutParams.height = pixelSize;
        imageButton.setLayoutParams(layoutParams);
        imageButton.requestLayout();
    }
private void adaptImageButtonSize ( ) { int pixelSize = getPixelSize ( ) ; LayoutParams layoutParams = ( LayoutParams ) imageButton . getLayoutParams ( ) ; layoutParams . width = pixelSize ; layoutParams . height = pixelSize ; imageButton . setLayoutParams ( layoutParams ) ; imageButton . requestLayout ( ) ; }
Adapts the size of the image button, which is used to show the floating image button's
background and icon, depending on the floating button's size.
Adapts the size of the image button which is used to show the floating image button s background and icon depending on the floating button s size .