FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

Issue with android:scaleType="center" property

Open nychavo opened this issue 10 years ago • 4 comments

The Floating Action button does not get displayed whenever i set the scaleType properties in the XML lyaout file:

android:scaleType="center"

This is the entire object xml definition:

    <com.github.clans.fab.FloatingActionButton
        android:id="@+id/fbNowPlaying"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|right"
        android:layout_marginBottom="8dp"
        android:scaleType="center"
        android:layout_marginRight="8dp"
        fab:fab_showAnimation="@anim/show_from_bottom"
        fab:fab_hideAnimation="@anim/hide_to_bottom"
        app:fab_progress_color="#ffc710"
        />

nychavo avatar Dec 05 '15 15:12 nychavo

Hi, I'm having the same problem : (

AT-Studio avatar Nov 08 '16 11:11 AT-Studio

+1, and How did you solve it?

wangxin05 avatar Jan 06 '17 10:01 wangxin05

+1, and How did you solve it?

TJHello avatar Mar 16 '18 05:03 TJHello

hi i solved this issue with create notification icon in android studio create icon in android studio image

abolfazlbzgh avatar Nov 06 '18 12:11 abolfazlbzgh