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:

and how looked while using imagebutton:

set scale type android:scaletype="center"
Comments
Post a Comment