android.support.design.widget.FloatingActionButton implenetation of FAB reduces image size -


so have started migrating official support design library android app of mine, replacing elements go. replaced fab (implemented imagebutton) official android.support.design.widget.floatingactionbutton. icon inside button smaller compared 1 in imagebutton. may have been reason?

floatingactionbutton's implementation:

<android.support.design.widget.floatingactionbutton     android:id="@+id/fab"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:src="@drawable/icon" /> 

tried adding app:fabsize="normal didn't work, either.

this how looks after using floatingactionbutton:

enter image description here

and how looked while using imagebutton:

enter image description here

set scale type android:scaletype="center"


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -