FloatingActionButton
FloatingActionButton copied to clipboard
Icon inside FloatingActionButton
Is there a way to reduce icon without having to set a smaller icon to the FAB ? The icon size is standardized.
i already tried to set scaleType, padding and margin on xml, but no success yet.
my icon size is 192px x 192px (SECOND ITEM)
FAB declaration <com.github.clans.fab.FloatingActionButton android:id="@+id/fab_add_place" style="@style/FABItemStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_map_marker" app:fab_colorNormal="@color/purple" app:fab_label="@string/ADD_ALARM_places_alarm_type" />
FABItemStyle
Thanks in advance
You can resize your icon programmatically and then set it as FAB's icon.
How would you achieve this, I've looked at a few ways but most add a ton of code
+1
+1
+1
+1
+1
You can resize your icon programmatically and then set it as FAB's icon.
Supporting as XML attribute would be awesome!