how to increase the size of icon inside floating action button ?

  • Replies:2
  • OpenNot stickiedUnanswered
  • Forum posts: 9

Aug 12, 2016 8:59:11 AM via Website

how to increase the size of icon inside floating action button ????????
I'm trying to put plus icon inside floating action button. I have tried with 48dp, 72dp, 96dp icons, but still the icon is looking too small.

  • Forum posts: 32

Aug 13, 2016 7:22:41 AM via Website

put android:scaleType="center" in button

  • Forum posts: 73

Aug 13, 2016 7:28:36 AM via Website

android.support.design.widget.FloatingActionButton

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_done_white_24px"
app:fabSize="mini"

fabSize can adjust as "mini" & "normal".