I am using FAB button for profile picture but it is already having some padding. I am using following code for creating FAB button.
<android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="120dp" android:layout_height="120dp" android:layout_margin="@dimen/fab_margin" android:src="@drawable/student" app:layout_anchor="@id/app_bar" app:layout_anchorGravity="bottom|end"/>
How can i remove the padding which is automatically providing by library. I have also attached an screenshot of output. I want to remove this sky blue color and increase the size of src image.
just add this in your dimens.xml
file
<dimen name="design_fab_image_size" tools:override="true">36dp</dimen>
This might not work for 3rd party libraries.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments